Advertisement
dahpiglz

playeroutline

Jun 8th, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. player = game.Players.LocalPlayer
  2. character = player.Character
  3.  
  4. mouse = player:GetMouse()
  5.  
  6. playeroutlines = Instance.new("Folder")
  7. playeroutlines.Parent = character
  8.  
  9. local p = character.Head:Clone()
  10. p.Parent = playeroutlines
  11. p.Mesh.Scale = Vector3.new(-1.5, -1.5, -1.5)
  12. p.face:Destroy()
  13.  
  14. character.Head.Mesh.Scale = Vector3.new(-1.25, -1.25, -1.25)
  15.  
  16. playeroutlinecolor = Color3.fromRGB(0, 0, 0)
  17.  
  18. for i,v in pairs(character:GetChildren()) do
  19. if v.ClassName == ("Accessory") then
  20. if v:FindFirstChild("Handle") ~= nil then
  21. if v.Handle:FindFirstChild("Mesh") ~= nil then
  22. v.Handle.Mesh.Scale = Vector3.new(v.Handle.Mesh.Scale.X * -1, v.Handle.Mesh.Scale.Y * -1, v.Handle.Mesh.Scale.Z * -1)
  23. end
  24. end
  25. end
  26. end
  27.  
  28. function click()
  29. if mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  30. playeroutlines2 = Instance.new("Folder")
  31. playeroutlines2.Parent = mouse.Target.Parent
  32.  
  33. local p = mouse.Target.Parent.Head:Clone()
  34. p.Parent = playeroutlines2
  35. p.Mesh.Scale = Vector3.new(-1.5, -1.5, -1.5)
  36. p.face:Destroy()
  37.  
  38. mouse.Target.Parent.Head.Mesh.Scale = Vector3.new(-1.25, -1.25, -1.25)
  39.  
  40. for i,v in pairs(mouse.Target.Parent:GetChildren()) do
  41. if v.ClassName == ("Accessory") then
  42. if v:FindFirstChild("Handle") ~= nil then
  43. if v.Handle:FindFirstChild("Mesh") ~= nil then
  44. v.Handle.Mesh.Scale = Vector3.new(v.Handle.Mesh.Scale.X * -1, v.Handle.Mesh.Scale.Y * -1, v.Handle.Mesh.Scale.Z * -1)
  45. end
  46. end
  47. end
  48. end
  49. end
  50. end
  51.  
  52. mouse.Button1Down:Connect(click)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement