Advertisement
Guest User

Skin changer

a guest
May 26th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.90 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Part1 = Instance.new("Part")
  21. Script2 = Instance.new("Script")
  22. Weld3 = Instance.new("Weld")
  23. Part4 = Instance.new("Part")
  24. Script5 = Instance.new("Script")
  25. Weld6 = Instance.new("Weld")
  26. Part7 = Instance.new("Part")
  27. Script8 = Instance.new("Script")
  28. Weld9 = Instance.new("Weld")
  29. Part10 = Instance.new("Part")
  30. Script11 = Instance.new("Script")
  31. Weld12 = Instance.new("Weld")
  32. Part13 = Instance.new("Part")
  33. Script14 = Instance.new("Script")
  34. Weld15 = Instance.new("Weld")
  35. Model0.Name = "Skin Colors"
  36. Model0.Parent = mas
  37. Part1.Name = "Smooth Block Model"
  38. Part1.Parent = Model0
  39. Part1.BrickColor = BrickColor.new("Reddish brown")
  40. Part1.Rotation = Vector3.new(0, 0, -180)
  41. Part1.Anchored = true
  42. Part1.CanCollide = false
  43. Part1.Size = Vector3.new(1, 6, 4)
  44. Part1.CFrame = CFrame.new(-6, 2.99999905, -1.49995005, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  45. Part1.BottomSurface = Enum.SurfaceType.Smooth
  46. Part1.TopSurface = Enum.SurfaceType.Weld
  47. Part1.Color = Color3.new(0.411765, 0.25098, 0.156863)
  48. Part1.Position = Vector3.new(-6, 2.99999905, -1.49995005)
  49. Part1.Orientation = Vector3.new(0, 0, 180)
  50. Part1.Color = Color3.new(0.411765, 0.25098, 0.156863)
  51. Script2.Parent = Part1
  52. table.insert(cors,sandbox(Script2,function()
  53. bin = script.Parent
  54.  
  55. function onTouched(part)
  56. part.BrickColor = script.Parent.BrickColor
  57. wait(.3)
  58. end
  59.  
  60. connection = bin.Touched:connect(onTouched)
  61. end))
  62. Weld3.Parent = Part1
  63. Weld3.C0 = CFrame.new(-50.5, 7.80000019, 3, 2.56730509e-12, 4.91654183e-11, 1, -6.29851504e-10, -1, -4.91654183e-11, 1, 6.29851504e-10, 2.56730509e-12)
  64. Weld3.C1 = CFrame.new(0.5, -8.80000019, 50.5, -1, -6.29851504e-10, -2.56730509e-12, 6.29851504e-10, 1, 4.91654183e-11, -2.56730509e-12, -4.91654183e-11, -1)
  65. Part4.Name = "Smooth Block Model"
  66. Part4.Parent = Model0
  67. Part4.BrickColor = BrickColor.new("Brown")
  68. Part4.Rotation = Vector3.new(0, 0, -180)
  69. Part4.Anchored = true
  70. Part4.CanCollide = false
  71. Part4.Size = Vector3.new(1, 6, 4)
  72. Part4.CFrame = CFrame.new(-6, 2.99999905, -6.49999619, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  73. Part4.BottomSurface = Enum.SurfaceType.Smooth
  74. Part4.TopSurface = Enum.SurfaceType.Weld
  75. Part4.Color = Color3.new(0.486275, 0.360784, 0.27451)
  76. Part4.Position = Vector3.new(-6, 2.99999905, -6.49999619)
  77. Part4.Orientation = Vector3.new(0, 0, 180)
  78. Part4.Color = Color3.new(0.486275, 0.360784, 0.27451)
  79. Script5.Parent = Part4
  80. table.insert(cors,sandbox(Script5,function()
  81. bin = script.Parent
  82.  
  83. function onTouched(part)
  84. part.BrickColor = script.Parent.BrickColor
  85. wait(.3)
  86. end
  87.  
  88. connection = bin.Touched:connect(onTouched)
  89. end))
  90. Weld6.Parent = Part4
  91. Weld6.C0 = CFrame.new(-50.5, 7.80000019, 3, 2.56730509e-12, 4.91654183e-11, 1, -6.29851504e-10, -1, -4.91654183e-11, 1, 6.29851504e-10, 2.56730509e-12)
  92. Weld6.C1 = CFrame.new(0.5, -8.80000019, 50.5, -1, -6.29851504e-10, -2.56730509e-12, 6.29851504e-10, 1, 4.91654183e-11, -2.56730509e-12, -4.91654183e-11, -1)
  93. Part7.Name = "Smooth Block Model"
  94. Part7.Parent = Model0
  95. Part7.BrickColor = BrickColor.new("Nougat")
  96. Part7.Rotation = Vector3.new(0, 0, -180)
  97. Part7.Anchored = true
  98. Part7.CanCollide = false
  99. Part7.Size = Vector3.new(1, 6, 4)
  100. Part7.CFrame = CFrame.new(-6, 2.99999905, -11.5000458, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  101. Part7.BottomSurface = Enum.SurfaceType.Smooth
  102. Part7.TopSurface = Enum.SurfaceType.Weld
  103. Part7.Color = Color3.new(0.8, 0.556863, 0.411765)
  104. Part7.Position = Vector3.new(-6, 2.99999905, -11.5000458)
  105. Part7.Orientation = Vector3.new(0, 0, 180)
  106. Part7.Color = Color3.new(0.8, 0.556863, 0.411765)
  107. Script8.Parent = Part7
  108. table.insert(cors,sandbox(Script8,function()
  109. bin = script.Parent
  110.  
  111. function onTouched(part)
  112. part.BrickColor = script.Parent.BrickColor
  113. wait(.3)
  114. end
  115.  
  116. connection = bin.Touched:connect(onTouched)
  117. end))
  118. Weld9.Parent = Part7
  119. Weld9.C0 = CFrame.new(-50.5, 7.80000019, 3, 2.56730509e-12, 4.91654183e-11, 1, -6.29851504e-10, -1, -4.91654183e-11, 1, 6.29851504e-10, 2.56730509e-12)
  120. Weld9.C1 = CFrame.new(0.5, -8.80000019, 50.5, -1, -6.29851504e-10, -2.56730509e-12, 6.29851504e-10, 1, 4.91654183e-11, -2.56730509e-12, -4.91654183e-11, -1)
  121. Part10.Name = "Smooth Block Model"
  122. Part10.Parent = Model0
  123. Part10.BrickColor = BrickColor.new("Pastel brown")
  124. Part10.Rotation = Vector3.new(0, 0, -180)
  125. Part10.Anchored = true
  126. Part10.CanCollide = false
  127. Part10.Size = Vector3.new(1, 6, 4)
  128. Part10.CFrame = CFrame.new(-6, 2.99999905, -16.5000916, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  129. Part10.BottomSurface = Enum.SurfaceType.Smooth
  130. Part10.TopSurface = Enum.SurfaceType.Weld
  131. Part10.Color = Color3.new(1, 0.8, 0.6)
  132. Part10.Position = Vector3.new(-6, 2.99999905, -16.5000916)
  133. Part10.Orientation = Vector3.new(0, 0, 180)
  134. Part10.Color = Color3.new(1, 0.8, 0.6)
  135. Script11.Parent = Part10
  136. table.insert(cors,sandbox(Script11,function()
  137. bin = script.Parent
  138.  
  139. function onTouched(part)
  140. part.BrickColor = script.Parent.BrickColor
  141. wait(.3)
  142. end
  143.  
  144. connection = bin.Touched:connect(onTouched)
  145. end))
  146. Weld12.Parent = Part10
  147. Weld12.C0 = CFrame.new(-50.5, 7.80000019, 3, 2.56730509e-12, 4.91654183e-11, 1, -6.29851504e-10, -1, -4.91654183e-11, 1, 6.29851504e-10, 2.56730509e-12)
  148. Weld12.C1 = CFrame.new(0.5, -8.80000019, 50.5, -1, -6.29851504e-10, -2.56730509e-12, 6.29851504e-10, 1, 4.91654183e-11, -2.56730509e-12, -4.91654183e-11, -1)
  149. Part13.Name = "Smooth Block Model"
  150. Part13.Parent = Model0
  151. Part13.BrickColor = BrickColor.new("Light orange")
  152. Part13.Rotation = Vector3.new(0, 0, -180)
  153. Part13.Anchored = true
  154. Part13.CanCollide = false
  155. Part13.Size = Vector3.new(1, 6, 4)
  156. Part13.CFrame = CFrame.new(-6, 2.99999905, -21.5001488, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  157. Part13.BottomSurface = Enum.SurfaceType.Smooth
  158. Part13.TopSurface = Enum.SurfaceType.Weld
  159. Part13.Color = Color3.new(0.917647, 0.721569, 0.572549)
  160. Part13.Position = Vector3.new(-6, 2.99999905, -21.5001488)
  161. Part13.Orientation = Vector3.new(0, 0, 180)
  162. Part13.Color = Color3.new(0.917647, 0.721569, 0.572549)
  163. Script14.Parent = Part13
  164. table.insert(cors,sandbox(Script14,function()
  165. bin = script.Parent
  166.  
  167. function onTouched(part)
  168. part.BrickColor = script.Parent.BrickColor
  169. wait(.3)
  170. end
  171.  
  172. connection = bin.Touched:connect(onTouched)
  173. end))
  174. Weld15.Parent = Part13
  175. Weld15.C0 = CFrame.new(-50.5, 7.80000019, 3, 2.56730509e-12, 4.91654183e-11, 1, -6.29851504e-10, -1, -4.91654183e-11, 1, 6.29851504e-10, 2.56730509e-12)
  176. Weld15.C1 = CFrame.new(0.5, -8.80000019, 50.5, -1, -6.29851504e-10, -2.56730509e-12, 6.29851504e-10, 1, 4.91654183e-11, -2.56730509e-12, -4.91654183e-11, -1)
  177. for i,v in pairs(mas:GetChildren()) do
  178. v.Parent = workspace
  179. pcall(function() v:MakeJoints() end)
  180. end
  181. mas:Destroy()
  182. for i,v in pairs(cors) do
  183. spawn(function()
  184. pcall(v)
  185. end)
  186. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement