Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Yeet
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- SpawnLocation0 = Instance.new("SpawnLocation")
- Decal1 = Instance.new("Decal")
- Script2 = Instance.new("Script")
- Weld3 = Instance.new("Weld")
- SpawnLocation0.Parent = mas
- SpawnLocation0.CFrame = CFrame.new(0, 0.599999011, -64, -1, 0, -0, -0, 1, -0, -0, 0, -1)
- SpawnLocation0.Orientation = Vector3.new(0, -180, 0)
- SpawnLocation0.Position = Vector3.new(0, 0.599999011, -64)
- SpawnLocation0.Rotation = Vector3.new(180, 0, -180)
- SpawnLocation0.Size = Vector3.new(6, 1.20000005, 6)
- SpawnLocation0.Anchored = true
- SpawnLocation0.BackSurface = Enum.SurfaceType.Weld
- SpawnLocation0.BottomSurface = Enum.SurfaceType.Weld
- SpawnLocation0.FrontSurface = Enum.SurfaceType.Weld
- SpawnLocation0.LeftSurface = Enum.SurfaceType.Weld
- SpawnLocation0.RightSurface = Enum.SurfaceType.Weld
- SpawnLocation0.TopSurface = Enum.SurfaceType.Smooth
- Decal1.Parent = SpawnLocation0
- Decal1.Texture = "rbxasset://Textures/SpawnLocation.png"
- Decal1.Face = Enum.NormalId.Top
- Script2.Name = "Deadly"
- Script2.Parent = SpawnLocation0
- table.insert(cors,sandbox(Script2,function()
- function onTouched(hit)
- local human = hit.Parent:findFirstChild("Humanoid")
- if (human ~= nil) then
- human.Health = human.Health - 999999999999999999999999999999999999999999999999999999999999
- end
- end
- --if (script.Parent ~= nil) and (script.Parent.className == "Part") then --Work if in a block
- -- connection = script.Parent.Touched:connect(onTouched)
- --end
- script.Parent.Touched:connect(onTouched)
- end))
- Weld3.Parent = SpawnLocation0
- Weld3.C0 = CFrame.new(0, -0.600000024, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
- Weld3.C1 = CFrame.new(0, 9.99999905, -64, -1, -0, -0, -0, -0, -1, -0, -1, -0)
- Weld3.Part0 = SpawnLocation0
- Weld3.Part1 = nil
- Weld3.part1 = nil
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement