#trip player when clicking on them

12 messages · Page 1 of 1 (latest)

random sapphire
#

whenever i click the player, instead of the player get tripped (sitting) i get tripped instead

local click = script.Parent

local distanceZ = -2.7
local distanceY = -0.5

click.MouseClick:Connect(function(player)
local character = player.Character
local humanoid = character and character:FindFirstChild("Humanoid")

if humanoid then
    humanoid.Sit = true
end

end)

solar sedgeBOT
#

studio** You are now Level 2! **studio

random sapphire
#

the script is in a clickdetector that is at starcharacterscripts

reef rover
reef rover
#

you need to reference the character the clickdetector is inside of and trip them instead

random sapphire
reef rover
random sapphire
#

inside clickdetector that is inside startercharacterscripts

reef rover
#

ok then ClickDetector.Parent

random sapphire
#

click = script.parent

#

which is clickdetector