Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.StartGui.Parent = game.StarterGui
- script.RobloxGui.Parent = game.StarterGui
- for i,v in pairs(game.Lighting:children()) do
- if v:IsA("Sky") then
- v:Destroy()
- end
- end
- game.Lighting.GlobalShadows = false
- game.Lighting.Ambient = Color3.new(128/255,128/255,128/255)
- game.Lighting.FogEnd = 100000
- game.Lighting.FogStart = 0
- game.Lighting.Outlines = false
- local sky = Instance.new("Sky",game.Lighting)
- sky.SkyboxBk = "http://www.roblox.com/asset/?id=15436783"
- sky.SkyboxDn = "http://www.roblox.com/asset/?id=15436796"
- sky.SkyboxFt = "http://www.roblox.com/asset/?id=15436831"
- sky.SkyboxLf = "http://www.roblox.com/asset/?id=15437157"
- sky.SkyboxRt = "http://www.roblox.com/asset/?id=15437166"
- sky.SkyboxUp = "http://www.roblox.com/asset/?id=15437184"
- sky.StarCount = 3000
- sky.Name = "Sky"
- function oldstud(p,hum)
- t = Instance.new("Texture")
- t.Parent = p
- t.StudsPerTileU = 1
- t.StudsPerTileV = 1
- t.Texture = "http://www.roblox.com/asset/?id=15829969"
- t.Face = "Top"
- t.Name = "TopStud"
- tb = Instance.new("Texture")
- tb.Parent = p
- tb.StudsPerTileV = 1
- tb.StudsPerTileU = 1
- tb.Texture = "http://www.roblox.com/asset/?id=15830139"
- tb.Face = "Bottom"
- tb.Name = "BottomStud"
- p.TopSurface = "Smooth"
- p.LeftSurface = "Smooth"
- p.RightSurface = "Smooth"
- p.BackSurface = "Smooth"
- p.FrontSurface = "Smooth"
- p.BottomSurface = "Smooth"
- p.Material = "SmoothPlastic"
- --p.Anchored = true
- end
- function makedecale(item)
- for i,v in pairs(item:GetChildren()) do
- if v:IsA("Part") then
- oldstud(v)
- elseif v:IsA("Model") then
- makedecale(v)
- end
- end
- end
- makedecale(workspace)
- ffTime = 6 -- How long forcefield lasts in seconds
- function PlayerSpawned(player, character) -- Finds player that spawns.
- pcall(function () player.PlayerGui.HealthGui:Destroy() end)
- pcall(function() player.Character.ForceField:Destroy() end)
- local c = character -- Now we can say that person as "c"
- local sound = script.OldSounds:Clone()
- sound.Parent = c
- sound.Disabled = false
- local health = script["HealthScript v2.0"]:clone()
- health.Parent = c
- health.Disabled = false
- local pad = script.Healthbar--script.Pad:clone()
- pad.Parent = c
- pad.Disabled = false
- s = script.ForceField:Clone() -- Clones my forcefield script.
- s.Parent = c -- Moves to character.
- s.Disabled = false
- wait(ffTime) -- Waits for ( ffTime ) seconds long.
- pcall(function () c.OldForceField.Value = false end) -- Stops forcefield animation.
- for _,things in pairs(c:GetChildren()) do -- Finds all parts in character.
- if things:IsA("BasePart") then -- Removes stuff that are not bricks from the table.
- c.Humanoid.MaxHealth = 100 -- Heal if nesscessary.
- c.Humanoid.Health = 100
- pcall(function () things.SelectionBox:Destroy() end) -- Destroy forcefield.
- pcall(function () c.OldForceField:Destroy() end) -- Destroy forcefield value.
- end
- end
- end
- game.Players.PlayerAdded:connect(function(p)
- p.CharacterAdded:connect(function(c) PlayerSpawned(p,c) end)
- end)
- game:GetService("RunService").Stepped:connect(function ()
- for i,c in pairs(workspace:GetChildren()) do
- if game.Players:findFirstChild(c.Name) then
- for i,v in pairs(c:GetChildren()) do
- if v:IsA("Hat") then v:Destroy()
- elseif v:IsA("Shirt") then v:Destroy()
- elseif v:IsA("Pants") then v:Destroy()
- elseif v:IsA("ShirtGraphic") then v:Destroy()
- elseif v:IsA("CharacterMesh") then v:Destroy()
- elseif v:IsA("BodyColors") then v:Destroy()
- elseif v.Name == "Torso" then v.roblox.Texture = "http://www.roblox.com/asset/?id=36032677"
- elseif v.Name == "Head" then v.face.Texture = "http://www.roblox.com/asset/?id=113981357"
- v.BrickColor = BrickColor.new("Bright yellow")
- elseif v.Name == "Animate" then v:Destroy()
- elseif v.Name == "Sound" then v:Destroy()
- elseif v.Name == "HealthScript v3.1" then v:Destroy()
- elseif v.Name == "Left Arm" or v.Name == "Right Arm" then
- v.BrickColor = BrickColor.new("Bright yellow")
- elseif v.Name == "Left Leg" or v.Name == "Right Leg" then v.BrickColor = BrickColor.new("Br. yellowish green") end
- if v:IsA("Part") and v:findFirstChild("BottomStud") == nil then oldstud(v) end
- if v:IsA("Part") and v:findFirstChild("Bavel") == nil and v.Name ~= "Head" then bavel = Instance.new("BlockMesh",v) bavel.Name = "Bavel" end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement