#How
18 messages · Page 1 of 1 (latest)
And add another end after "part.Anchored = false
"
Also, it doesnt make sense. You are getting only part that are NOT anchored and you set anchor to false..
Could you explain what are you trying to achieve?
I want it to unanchor the anchored object but when it is unanchored i want it to not trigger any sound or script
When you touch the part?
yes
Only that part you touch or every part?
only that part
Aight so you should do smth likt this:
local part = YOUR_PART
part.Touched:Connect(function(hit)
if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then --checking if is a player
if part.Name = "Crowbar" then
if part.Anchored == true then
part.Anchored = false
script.Parent.Parent.Sound:Play()
end
end
end
end)
Try this
oh wait
** You are now Level 3! **