#How

18 messages · Page 1 of 1 (latest)

cursive wren
#

You shoud delete that "not" btw

#

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?

quaint quail
#

I want it to unanchor the anchored object but when it is unanchored i want it to not trigger any sound or script

cursive wren
#

When you touch the part?

quaint quail
#

yes

cursive wren
#

Only that part you touch or every part?

quaint quail
#

only that part

cursive wren
#

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

quaint quail
#

oh wait

torpid waveBOT
#

studio** You are now Level 3! **studio

quaint quail
#

is telling you that its a tool helpful?

#

wait nvm

#

i figured it out

#

thanks