What is the issue? i’m having issues creating the stun system for my slide ability. There’s no errors and when i try in a NPC it works.
I’m new at Lua scripting, so is a little confusing to me.
Here’s the script:
local player = game.Players.LocalPlayer
local char = player.Character
local human = char.Humanoid
local rightLeg = char[“Right Leg”]
local Part = rightLeg
Part.Touched:Connect(function(hit)
local h = hit.Parent:findFirstChild(“Humanoid”)
if h then
h.Sit = true
end
end)
This script is disabled, when you slide this script activates and if your Right Leg touch a humanoid him sits.