Advertisement
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"))
- Part0 = Instance.new("Part")
- VectorForce1 = Instance.new("VectorForce")
- Script2 = Instance.new("Script")
- Part0.Parent = mas
- Part0.CFrame = CFrame.new(3.5, 2.5, -3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part0.Position = Vector3.new(3.5, 2.5, -3.5)
- Part0.Size = Vector3.new(5, 5, 5)
- Part0.Anchored = true
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Attachment0 = Instance.new("Attachment",Part0)
- Attachment0.Orientation = Vector3.new(0,-90,0)
- Attachment0.Position = Vector3.new(0,0.25,2.5)
- VectorForce1.Parent = Part0
- VectorForce1.Attachment0 = Attachment0
- VectorForce1.Force = Vector3.new(100000, 0, 0)
- Script2.Parent = Part0
- table.insert(cors,sandbox(Script2,function()
- while true do
- wait(.1)
- local a = script.Parent:clone()
- a.Parent = workspace
- a.Script:remove()
- a.Anchored = false
- script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0,.1,0)
- end
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement