Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local remote = NS ([==[
- local w = workspace:GetChildren()
- local a = Instance.new("Sky",game.Lighting)
- local b = {"Bk","Dn","Ft","Lf","Rt","Up"}
- for _,v in pairs(b) do
- a["Skybox"..v]="rbxassetid://2581347288"
- end
- script.Parent = Workspace
- local light = Instance.new("Humanoid", workspace)
- light.Name = "Old Light"
- function Get(armlet)
- local c = armlet:GetChildren()
- for i=1,#c do
- Get(c[i])
- if (c[i].className == "Part") or (c[i].className == "WedgePart") or (c[i].className == "TrussPart") or (c[i].className == "Seat") or (c[i].className == "VehicleSeat") or (c[i].className == "SkateboardPlatform") or (c[i].className == "Baseplate") or (c[i].className == "Base") or (c[i].className == "Workspace") then
- local t = Instance.new("Texture")
- t.StudsPerTileU = 1
- t.StudsPerTileV = 1
- t.Texture = "http://www.roblox.com/asset/?id=2524938801"
- t.Face = "Top"
- t.Name = "Top"
- t.Parent = c[i]
- local b = Instance.new("Texture")
- b.StudsPerTileU = 1
- b.StudsPerTileV = 1
- b.Texture = "http://www.roblox.com/asset/?id=2526666609"
- b.Face = "Bottom"
- b.Name = "Bottom"
- b.Parent = c[i]
- c[i].Material = "SmoothPlastic"
- end
- end
- end
- Get(Workspace)
- function fake(part,boom)
- if part.Anchored == true then return end
- if (part.Position - boom[3]).magnitude < boom[2]*5 then
- --part:BreakJoints()
- part.Velocity = (part.Position - boom[3]).unit * boom[1]/10000
- end
- end
- function GetAll(armlet,expl)
- local c = armlet:GetChildren()
- for i=1,#c do
- GetAll(c[i],expl)
- if (c[i].className == "Part") or (c[i].className == "WedgePart") or (c[i].className == "TrussPart") or (c[i].className == "Seat") or (c[i].className == "VehicleSeat") or (c[i].className == "SkateboardPlatform") or (c[i].className == "Baseplate") or (c[i].className == "Base") or (c[i].className == "Workspace") then
- fake(c[i],expl)
- end
- end
- end
- function pop(exp)
- if exp.className == "Explosion" then
- local boomclone = exp:Clone()
- local bp = boomclone.BlastPressure
- local br = boomclone.BlastRadius
- local bpos = boomclone.Position
- boomt = {bp,br,bpos} exp:Remove()
- GetAll(Workspace,boomt)
- funct = coroutine.create(function(data)
- local p = Instance.new("Part")
- p.Color = Color3.new(1,0,0)
- p.Shape = "Ball"
- p.TopSurface = "Smooth"
- p.BottomSurface = "Smooth"
- p.Size = Vector3.new(boomt[2]*2.5,boomt[2]*2.5,boomt[2]*2.5)
- p.CanCollide = false
- p.Anchored = true
- p.Locked = true
- p.CFrame = CFrame.new(boomt[3])
- p.Parent = Workspace
- wait(2)
- p:Remove()
- end)
- assert (coroutine.resume (funct, p))
- end
- end
- function GetConnect(armlet)
- armlet.ChildAdded:connect(pop)
- armlet.ChildAdded:connect(function(obj) if obj.className~="Explosion" then GetConnect(obj) end end )
- local c = armlet:GetChildren()
- for i=1,#c do
- Get(c[i])
- c[i].ChildAdded:connect(pop)
- c[i].ChildAdded:connect(function(obj) GetConnect(obj) end )
- end
- end
- GetConnect(Workspace)
- ]==], owner.Character):WaitForChild 'ServerRemote';
- mouse = owner:GetMouse ();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement