Advertisement
cat568

Untitled

Jun 25th, 2018
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. local chil = workspace:GetChildren()
  20. for i,v in pairs(chil) do
  21. if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then
  22. v:Destroy()
  23. end
  24. end
  25. Camera0 = Instance.new("Camera")
  26. Part1 = Instance.new("Part")
  27. Script2 = Instance.new("Script")
  28. Camera0.Parent = mas
  29. 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)
  30. 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)
  31. Camera0.Focus = CFrame.new(-23.7516842, 28.1819935, -13.1617937, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  32. Camera0.focus = CFrame.new(-23.7516842, 28.1819935, -13.1617937, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  33. Part1.Name = "Baseplate"
  34. Part1.Parent = mas
  35. Part1.CFrame = CFrame.new(0, -10, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  36. Part1.Position = Vector3.new(0, -10, 0)
  37. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  38. Part1.Size = Vector3.new(512, 20, 512)
  39. Part1.Anchored = true
  40. Part1.BrickColor = BrickColor.new("Dark stone grey")
  41. Part1.Locked = true
  42. Part1.brickColor = BrickColor.new("Dark stone grey")
  43. Part1.FormFactor = Enum.FormFactor.Symmetric
  44. Part1.formFactor = Enum.FormFactor.Symmetric
  45. Script2.Parent = mas
  46. table.insert(cors,sandbox(Script2,function()
  47. game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player,animationID)
  48. local animation = Instance.new("Animation")
  49. animation.AnimationId = "http://www.roblox.com/Asset?ID="..animationID
  50.  
  51. local loadedAnimation = game.Workspace[player.Name].Humanoid:LoadAnimation(animation)
  52. loadedAnimation:Play()
  53. end)
  54. end))
  55. for i,v in pairs(mas:GetChildren()) do
  56. v.Parent = game:GetService("Players").LocalPlayer.PlayerGui
  57. pcall(function() v:MakeJoints() end)
  58. end
  59. mas:Destroy()
  60. for i,v in pairs(cors) do
  61. spawn(function()
  62. pcall(v)
  63. end)
  64. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement