Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. function onTouched(part)
  2. local h = part.Parent:findFirstChild("Humanoid")
  3. if h~=nil then
  4. script.Parent.Parent.Parent = h.Parent
  5. script:remove()
  6. end
  7. end
  8.  
  9. script.Parent.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement