Advertisement
otorp2

parttouched get player from char

Jun 30th, 2019
481
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. local function partTouched(otherPart)
  2. --local player = Players:GetPlayerFromCharacter(otherPart.Parent)
  3. local player = game.Players:GetPlayerFromCharacter(otherPart.Parent)
  4.  
  5. if player then
  6. givePoints(player)
  7. end
  8. end
  9.  
  10. pointPart.Touched:Connect(partTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement