Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- 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"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Script2 = Instance.new("Script")
- Model0.Parent = mas
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(-16.0000305, 1.19999993, -7.62939453e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(-16.0000305, 1.19999993, -7.62939453e-05)
- Part1.Color = Color3.new(0.294118, 0.592157, 0.294118)
- Part1.Transparency = 1
- Part1.Size = Vector3.new(555.600037, 2.4000001, 512.000305)
- Part1.Anchored = true
- Part1.BrickColor = BrickColor.new("Bright green")
- Part1.brickColor = BrickColor.new("Bright green")
- Script2.Name = "SpikeScript"
- Script2.Parent = Part1
- table.insert(cors,sandbox(Script2,function()
- -- useless comment
- function onTouched(hit)
- if not hit or not hit.Parent then return end
- local human = hit.Parent:findFirstChild("Humanoid")
- if human and human:IsA("Humanoid") then
- human:TakeDamage(100)
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- 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
Add Comment
Please, Sign In to add comment