Advertisement
impreston

Untitled

Sep 13th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. function makewhite(colorval)
  2. for i=1,4 do
  3. game.Players.LocalPlayer.Character["Left Arm"].Color = Color3.fromRGB(colorval,colorval,colorval)
  4. game.Players.LocalPlayer.Character["Right Arm"].Color = Color3.fromRGB(colorval,colorval,colorval)
  5. game.Players.LocalPlayer.Character["Left Leg"].Color = Color3.fromRGB(colorval,colorval,colorval)
  6. game.Players.LocalPlayer.Character["Right Leg"].Color = Color3.fromRGB(colorval,colorval,colorval)
  7. game.Players.LocalPlayer.Character["Head"].Color = Color3.fromRGB(colorval,colorval,colorval)
  8. game.Players.LocalPlayer.Character["Torso"].Color = Color3.fromRGB(colorval,colorval,colorval)
  9. end
  10. end
  11.  
  12.  
  13. function makenorm()
  14. game.Players.LocalPlayer.Character["Left Arm"].Color = Color3.fromRGB(255,255,255)
  15. game.Players.LocalPlayer.Character["Right Arm"].Color = Color3.fromRGB(255,255,255)
  16. game.Players.LocalPlayer.Character["Left Leg"].Color = Color3.fromRGB(255,255,255)
  17. game.Players.LocalPlayer.Character["Right Leg"].Color = Color3.fromRGB(255,255,255)
  18. game.Players.LocalPlayer.Character["Head"].Color = Color3.fromRGB(255,255,255)
  19. game.Players.LocalPlayer.Character["Torso"].Color = Color3.fromRGB(98, 37, 209)
  20. end
  21.  
  22. function find(pos)
  23. local lowest = math.huge()
  24. local nearestp = nil
  25. for i,v in pairs(game.Players:GetPlayers()) do
  26. if v and v.Character then
  27. local dist = v:DistanceFromCharacter(pos)
  28. if dist < lowest then
  29. lowest = dist
  30. nearestp = v
  31. end
  32. end
  33. end
  34. end
  35.  
  36. if find(game.Players.LocalPlayer.Character.Torso.Position) then
  37. makewhite()
  38. wait(3)
  39. local explo = Instance.new('Explosion')
  40. explo.Parent = game.Players.LocalPlayer.Character.Torso
  41. explo.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement