Advertisement
putintg

Untitled

Dec 4th, 2016
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.28 KB | None | 0 0
  1. script.StartGui.Parent = game.StarterGui
  2. script.RobloxGui.Parent = game.StarterGui
  3. for i,v in pairs(game.Lighting:children()) do
  4. if v:IsA("Sky") then
  5. v:Destroy()
  6. end
  7. end
  8.  
  9. game.Lighting.GlobalShadows = false
  10. game.Lighting.Ambient = Color3.new(128/255,128/255,128/255)
  11. game.Lighting.FogEnd = 100000
  12. game.Lighting.FogStart = 0
  13. game.Lighting.Outlines = false
  14.  
  15. local sky = Instance.new("Sky",game.Lighting)
  16. sky.SkyboxBk = "http://www.roblox.com/asset/?id=15436783"
  17. sky.SkyboxDn = "http://www.roblox.com/asset/?id=15436796"
  18. sky.SkyboxFt = "http://www.roblox.com/asset/?id=15436831"
  19. sky.SkyboxLf = "http://www.roblox.com/asset/?id=15437157"
  20. sky.SkyboxRt = "http://www.roblox.com/asset/?id=15437166"
  21. sky.SkyboxUp = "http://www.roblox.com/asset/?id=15437184"
  22. sky.StarCount = 3000
  23. sky.Name = "Sky"
  24.  
  25. function oldstud(p,hum)
  26. t = Instance.new("Texture")
  27. t.Parent = p
  28. t.StudsPerTileU = 1
  29. t.StudsPerTileV = 1
  30. t.Texture = "http://www.roblox.com/asset/?id=15829969"
  31. t.Face = "Top"
  32. t.Name = "TopStud"
  33. tb = Instance.new("Texture")
  34. tb.Parent = p
  35. tb.StudsPerTileV = 1
  36. tb.StudsPerTileU = 1
  37. tb.Texture = "http://www.roblox.com/asset/?id=15830139"
  38. tb.Face = "Bottom"
  39. tb.Name = "BottomStud"
  40. p.TopSurface = "Smooth"
  41. p.LeftSurface = "Smooth"
  42. p.RightSurface = "Smooth"
  43. p.BackSurface = "Smooth"
  44. p.FrontSurface = "Smooth"
  45. p.BottomSurface = "Smooth"
  46. p.Material = "SmoothPlastic"
  47. --p.Anchored = true
  48. end
  49.  
  50. function makedecale(item)
  51. for i,v in pairs(item:GetChildren()) do
  52. if v:IsA("Part") then
  53. oldstud(v)
  54. elseif v:IsA("Model") then
  55. makedecale(v)
  56. end
  57. end
  58. end
  59.  
  60. makedecale(workspace)
  61.  
  62. ffTime = 6 -- How long forcefield lasts in seconds
  63.  
  64. function PlayerSpawned(player, character) -- Finds player that spawns.
  65. pcall(function () player.PlayerGui.HealthGui:Destroy() end)
  66. pcall(function() player.Character.ForceField:Destroy() end)
  67.  
  68. local c = character -- Now we can say that person as "c"
  69.  
  70. local sound = script.OldSounds:Clone()
  71. sound.Parent = c
  72. sound.Disabled = false
  73.  
  74. local health = script["HealthScript v2.0"]:clone()
  75. health.Parent = c
  76. health.Disabled = false
  77.  
  78. local pad = script.Healthbar--script.Pad:clone()
  79. pad.Parent = c
  80. pad.Disabled = false
  81.  
  82. s = script.ForceField:Clone() -- Clones my forcefield script.
  83. s.Parent = c -- Moves to character.
  84. s.Disabled = false
  85. wait(ffTime) -- Waits for ( ffTime ) seconds long.
  86. pcall(function () c.OldForceField.Value = false end) -- Stops forcefield animation.
  87. for _,things in pairs(c:GetChildren()) do -- Finds all parts in character.
  88. if things:IsA("BasePart") then -- Removes stuff that are not bricks from the table.
  89. c.Humanoid.MaxHealth = 100 -- Heal if nesscessary.
  90. c.Humanoid.Health = 100
  91. pcall(function () things.SelectionBox:Destroy() end) -- Destroy forcefield.
  92. pcall(function () c.OldForceField:Destroy() end) -- Destroy forcefield value.
  93. end
  94. end
  95. end
  96.  
  97. game.Players.PlayerAdded:connect(function(p)
  98. p.CharacterAdded:connect(function(c) PlayerSpawned(p,c) end)
  99. end)
  100.  
  101. game:GetService("RunService").Stepped:connect(function ()
  102. for i,c in pairs(workspace:GetChildren()) do
  103. if game.Players:findFirstChild(c.Name) then
  104. for i,v in pairs(c:GetChildren()) do
  105. if v:IsA("Hat") then v:Destroy()
  106. elseif v:IsA("Shirt") then v:Destroy()
  107. elseif v:IsA("Pants") then v:Destroy()
  108. elseif v:IsA("ShirtGraphic") then v:Destroy()
  109. elseif v:IsA("CharacterMesh") then v:Destroy()
  110. elseif v:IsA("BodyColors") then v:Destroy()
  111. elseif v.Name == "Torso" then v.roblox.Texture = "http://www.roblox.com/asset/?id=36032677"
  112. elseif v.Name == "Head" then v.face.Texture = "http://www.roblox.com/asset/?id=113981357"
  113. v.BrickColor = BrickColor.new("Bright yellow")
  114. elseif v.Name == "Animate" then v:Destroy()
  115. elseif v.Name == "Sound" then v:Destroy()
  116. elseif v.Name == "HealthScript v3.1" then v:Destroy()
  117. elseif v.Name == "Left Arm" or v.Name == "Right Arm" then
  118. v.BrickColor = BrickColor.new("Bright yellow")
  119. elseif v.Name == "Left Leg" or v.Name == "Right Leg" then v.BrickColor = BrickColor.new("Br. yellowish green") end
  120. if v:IsA("Part") and v:findFirstChild("BottomStud") == nil then oldstud(v) end
  121. if v:IsA("Part") and v:findFirstChild("Bavel") == nil and v.Name ~= "Head" then bavel = Instance.new("BlockMesh",v) bavel.Name = "Bavel" end
  122. end
  123. end
  124. end
  125. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement