Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a Touched Part For FilteringEnabled?

Hello, i need a Touched part For Filtering enabled. Anonye correct me?

boton = script.Parent

function onTouch(part) game.Players.LocalPlayer.Character.LowerTorso.Anchored = true wait(6) game.Players.LocalPlayer.Character.LowerTorso.Anchored = false end

boton.Touched:connect(onTouch)

1 answer

Try:

local Part = script.Parent local Touched = false Part.Touched:Connect(function(Part) if Part.Parent:FindFirstChild("LowerTorso") and Touched == false then Touched = true Part.Parent:WaitForChild("LowerTorso").Anchored = true wait(6) Part.Parent:WaitForChild("LowerTorso").Anchored = false Touched = false end end

2 comments

0

Thanks!

0

Np

This discussion is preserved as it was. New answers, comments, and votes are closed.