You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Trying to make this punch script work with R15.
-
What is the issue? When the player punches someone and it will not work with R15 Characters.
-
What solutions have you tried so far? Change the code some more.
How to make this code below work with R15?
-- This code will only work with R6 but how to convent it to R15? I don't want to leak the rest of the code
-- This will just yeild for R15 Characters
Plr.Character:WaitForChild("Left Arm").Touched:Connect(function(hit)
if hit["Parent"]:WaitForChild("Humanoid") and db and not damaged then
if Plr["Character"]["Humanoid"]["Health"] > 0 then
damaged = true
Event:FireServer(hit["Parent"]["Humanoid"])
end
end
end)
-- This will just yeild for R15 Characters
Plr.Character:WaitForChild("Right Arm").Touched:Connect(function(hit)
if hit["Parent"]:WaitForChild("Humanoid") and db and not damaged then
if Plr["Character"]["Humanoid"]["Health"] > 0 then
damaged = true
Event:FireServer(hit["Parent"]["Humanoid"])
end
end
end)
