r15:
wait(1) --change this to 0.1 or game.Players.LocalPlayer.waitforchild:("Character")
game.Players.LocalPlayer.Character.LeftUpperLeg.Touched:connect(function(other)
local name = other.Name
--print(name)
if name == "nameofpart" then --replace nameofpart with the name of your part
--code
end
end)
--client sided touched script by bloctans_4. 2021.
r6:
wait(1) --change this to 0.1 or game.Players.LocalPlayer.waitforchild:("Character")
game.Players.LocalPlayer.Character["Left Leg"].Touched:connect(function(other)
local name = other.Name
--print(name)
if name == "nameofpart" then --replace nameofpart with the name of your part
--code
end
end)
--client sided touched script by bloctans_4. 2021.
0 comments