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"))
- local chil = workspace:GetChildren()
- for i,v in pairs(chil) do
- if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then
- v:Destroy()
- end
- end
- Camera0 = Instance.new("Camera")
- Part1 = Instance.new("Part")
- Script2 = Instance.new("Script")
- Camera0.Parent = mas
- Camera0.CFrame = CFrame.new(-24.5846786, 29.6959934, -12.1548548, 0.770519912, 0.48252368, -0.416497141, -0, 0.653415084, 0.756999791, 0.637415886, -0.583283424, 0.503469348)
- Camera0.CoordinateFrame = CFrame.new(-24.5846786, 29.6959934, -12.1548548, 0.770519912, 0.48252368, -0.416497141, -0, 0.653415084, 0.756999791, 0.637415886, -0.583283424, 0.503469348)
- Camera0.Focus = CFrame.new(-23.7516842, 28.1819935, -13.1617937, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera0.focus = CFrame.new(-23.7516842, 28.1819935, -13.1617937, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Name = "Baseplate"
- Part1.Parent = mas
- Part1.CFrame = CFrame.new(0, -10, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(0, -10, 0)
- Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part1.Size = Vector3.new(512, 20, 512)
- Part1.Anchored = true
- Part1.BrickColor = BrickColor.new("Dark stone grey")
- Part1.Locked = true
- Part1.brickColor = BrickColor.new("Dark stone grey")
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.formFactor = Enum.FormFactor.Symmetric
- Script2.Parent = mas
- table.insert(cors,sandbox(Script2,function()
- game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player,animationID)
- local animation = Instance.new("Animation")
- animation.AnimationId = "http://www.roblox.com/Asset?ID="..animationID
- local loadedAnimation = game.Workspace[player.Name].Humanoid:LoadAnimation(animation)
- loadedAnimation:Play()
- end)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.PlayerGui
- 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