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"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Part2 = Instance.new("Part")
- Weld3 = Instance.new("Weld")
- Script4 = Instance.new("Script")
- Model0.Parent = mas
- Part1.Name = "MainPart"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(-21, 8.00002193, 77, 1, -0, 0, 0, -0, 1, 0, -1, 0)
- Part1.Orientation = Vector3.new(-90, 0, 0)
- Part1.Position = Vector3.new(-21, 8.00002193, 77)
- Part1.Rotation = Vector3.new(-90, 0, 0)
- Part1.Color = Color3.new(0.294118, 0.592157, 0.294118)
- Part1.Transparency = 0.30000001192093
- Part1.Velocity = Vector3.new(-0.884437203, 0.00769238546, -5.52216721)
- Part1.Size = Vector3.new(16, 16, 16)
- Part1.BackSurface = Enum.SurfaceType.Weld
- Part1.BottomSurface = Enum.SurfaceType.Weld
- Part1.BrickColor = BrickColor.new("Bright green")
- Part1.FrontSurface = Enum.SurfaceType.Weld
- Part1.LeftSurface = Enum.SurfaceType.Weld
- Part1.RightSurface = Enum.SurfaceType.Weld
- Part1.RotVelocity = Vector3.new(-0.686433971, -0.0313967951, 0.110840559)
- Part1.TopSurface = Enum.SurfaceType.Weld
- Part1.brickColor = BrickColor.new("Bright green")
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.formFactor = Enum.FormFactor.Symmetric
- Part1.Shape = Enum.PartType.Ball
- Part2.Parent = Model0
- Part2.CFrame = CFrame.new(-21, 8.00002193, 77.0198364, 1, 1.58881612e-14, 6.90108384e-20, -6.90108384e-20, 1.71581855e-14, 1, 1.58881612e-14, -1, 1.71581855e-14)
- Part2.Orientation = Vector3.new(-90, 0, 0)
- Part2.Position = Vector3.new(-21, 8.00002193, 77.0198364)
- Part2.Rotation = Vector3.new(-90, 0, 0)
- Part2.Color = Color3.new(1, 1, 0)
- Part2.Velocity = Vector3.new(-0.885060012, 0.0213087816, -5.52216721)
- Part2.Size = Vector3.new(8, 8, 8)
- Part2.BackSurface = Enum.SurfaceType.Weld
- Part2.BottomSurface = Enum.SurfaceType.Weld
- Part2.BrickColor = BrickColor.new("New Yeller")
- Part2.FrontSurface = Enum.SurfaceType.Weld
- Part2.LeftSurface = Enum.SurfaceType.Weld
- Part2.RightSurface = Enum.SurfaceType.Weld
- Part2.RotVelocity = Vector3.new(-0.686433971, -0.0313967951, 0.110840559)
- Part2.TopSurface = Enum.SurfaceType.Weld
- Part2.brickColor = BrickColor.new("New Yeller")
- Part2.FormFactor = Enum.FormFactor.Symmetric
- Part2.formFactor = Enum.FormFactor.Symmetric
- Part2.Shape = Enum.PartType.Ball
- Weld3.Parent = Part2
- Weld3.C0 = CFrame.new(4.03283507e-21, -7.54951657e-13, -2.4158453e-13, 1, -1.58881612e-14, -6.90108384e-20, 1.58881612e-14, 1, 1.71581855e-14, 6.90108384e-20, -1.71581855e-14, 1)
- Weld3.C1 = CFrame.new(0, -0.0198402405, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld3.Part0 = Part2
- Weld3.Part1 = Part1
- Weld3.part1 = Part1
- Script4.Name = "WeldScript"
- Script4.Parent = Model0
- table.insert(cors,sandbox(Script4,function()
- t = script.Parent
- wait(5)
- function stick(x, y)
- weld = Instance.new("Weld")
- weld.Part0 = x
- weld.Part1 = y
- local HitPos = x.Position
- local CJ = CFrame.new(HitPos)
- local C0 = x.CFrame:inverse() *CJ
- local C1 = y.CFrame:inverse() * CJ
- weld.C0 = C0
- weld.C1 = C1
- weld.Parent = x
- end
- function Weldnow()
- c = t:children()
- for n = 1, #c do
- if (c[n].className == "Part") then
- if (c[n].Name ~= "MainPart") then
- stick(c[n], t.MainPart)
- wait()
- c[n].Anchored = false
- end
- end
- end
- wait()
- t.MainPart.Anchored = false
- Weldnow()
- 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