how to make a Damage Script in Roblox studio
local rarm = script.Parent:FindFirstChild("Right Arm")
local larm = script.Parent:FindFirstChild("Left Arm")
function dmg(hit)
if hit.Parent ~= nil then
local hum = hit.Parent:findFirstChild("Humanoid")
if hum ~= nil then
hum.Health = hum.Health -10
end
end
end
rarm.Touched:connect(dmg)
larm.Touched:connect(dmg)
--Made By Rigby#9052 on Discord
3.8
5
I wanna hack a roblox acc of someonws
Thank you!
5
0
Are there any code examples left?
New code examples in category Lua
-
Lua 2022-03-27 18:30:01 how to use for iv in pairs
-
Lua 2022-03-27 17:10:08 lua last item in table
-
Lua 2022-03-27 09:10:05 how to make a table in lua
-
Lua 2022-03-25 06:45:17 function parameters roblox
-
Lua 2022-03-24 20:50:37 lua variables
-
Lua 2022-03-17 00:30:02 lua list of all keys
-
Lua 2022-03-16 22:40:31 play sound love2d
-
Lua 2022-03-12 12:15:06 how to get the player mouse in roblox studio
-
Lua 2022-03-12 10:40:17 how to add a damage decimal in roblox studio
-
Lua 2022-03-02 19:40:19 lowercase lua