Advertisement
iimakedamodels

Untitled

Jan 23rd, 2017
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. --[A base script by TRICKYDAVE]--
  2.  
  3. Player = game.Players.LocalPlayer
  4.  
  5. --[[SERVICES]]--
  6. Camera = Workspace.CurrentCamera
  7. Terrain = Workspace.Terrain
  8. Lighting = game.Lighting
  9. StartP = game.StarterPlayer
  10. Players = game.Players
  11.  
  12. --[[PLAYER]]--
  13. User = Player.Character
  14. if not User or not User.Parent then
  15. User = Player.CharacterAdded:wait()
  16. end
  17. Mouse = Player:GetMouse()
  18. --[Wait Time]--
  19. User:WaitForChild("Head")
  20. User:WaitForChild("Torso")
  21. User:WaitForChild("HumanoidRootPart")
  22. User:WaitForChild("Right Arm")
  23. User:WaitForChild("Right Leg")
  24. User:WaitForChild("Left Arm")
  25. User:WaitForChild("Left Leg")
  26.  
  27. --[Parts]--
  28. Hum = User:findFirstChild("Humanoid")
  29. Head = User.Head
  30. Torso = User.Torso
  31. HRP = User.HumanoidRootPart
  32. -------------------------------------------------------------------------------------------------------------------------
  33.  
  34. function Midas(p)
  35. if p:IsA"BasePart" and p.Parent:IsA"Model" then
  36. local x = p.Parent:GetChildren()
  37. for i=1,#x do wait(0.025)
  38. if x[i]:IsA"BasePart" then
  39. x[i].BrickColor = BrickColor.Yellow()
  40. x[i].Material = "SmoothPlastic"
  41. x[i].Reflectance = 0.5
  42. if x[i]:IsA"Union" then p.UsePartColor = true end
  43. end
  44. end
  45. elseif p:IsA"BasePart" then
  46. p.BrickColor = BrickColor.Yellow()
  47. p.Material = "SmoothPlastic"
  48. p.Reflectance = 0.5
  49. if p:IsA"Union" then p.UsePartColor = true end
  50. end
  51. end
  52.  
  53. function _Spawn()
  54. local x = User:GetChildren()
  55. for i =1,#x do
  56. if x[i]:IsA"Shirt" or x[i]:IsA"Pants" or x[i]:IsA"ShirtGraphic" then
  57. x[i]:remove()
  58. end
  59. if x[i]:IsA"BasePart" then
  60. x[i].BrickColor = BrickColor.Yellow()
  61. x[i].Material = "SmoothPlastic"
  62. x[i].Reflectance = 0.5
  63. end
  64. if x[i]:IsA"Hat" then
  65. x[i].Handle.BrickColor = BrickColor.Yellow()
  66. x[i].Handle.Material = "SmoothPlastic"
  67. x[i].Handle.Reflectance = 0.5
  68. if x[i].Handle:FindFirstChild"Mesh" then
  69. x[i].Handle.Mesh.TextureId = ""
  70. end
  71. end
  72. end
  73. end
  74.  
  75. User:WaitForChild("Right Arm").Touched:connect(Midas)
  76. User:WaitForChild("Left Arm").Touched:connect(Midas)
  77. User:WaitForChild("Right Leg").Touched:connect(Midas)
  78. User:WaitForChild("Left Leg").Touched:connect(Midas)
  79. User:WaitForChild("Torso").Touched:connect(Midas)
  80. User:WaitForChild("Head").Touched:connect(Midas)
  81. wait(1)
  82. _Spawn()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement