Advertisement
antgame11

Untitled

Mar 23rd, 2019
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 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. Part0 = Instance.new("Part")
  20. ClickDetector1 = Instance.new("ClickDetector")
  21. Script2 = Instance.new("Script")
  22. LocalScript3 = Instance.new("LocalScript")
  23. Decal4 = Instance.new("Decal")
  24. Decal5 = Instance.new("Decal")
  25. Decal6 = Instance.new("Decal")
  26. Decal7 = Instance.new("Decal")
  27. Decal8 = Instance.new("Decal")
  28. Decal9 = Instance.new("Decal")
  29. Part0.Name = "Work at a Pizza Place"
  30. Part0.Parent = mas
  31. Part0.CFrame = CFrame.new(120.629974, 9.22000122, 39.840004, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  32. Part0.Position = Vector3.new(120.629974, 9.22000122, 39.840004)
  33. Part0.Size = Vector3.new(16.3199997, 18.4400024, 15.6799994)
  34. Part0.Anchored = true
  35. Part0.BottomSurface = Enum.SurfaceType.Smooth
  36. Part0.TopSurface = Enum.SurfaceType.Smooth
  37. ClickDetector1.Parent = Part0
  38. Script2.Parent = ClickDetector1
  39. table.insert(cors,sandbox(Script2,function()
  40. script.Parent.MouseClick:connect(function(p)
  41. tele=script.Teleport:Clone()
  42. tele.Parent = p.PlayerGui
  43. tele.Disabled=false
  44. end)
  45.  
  46. end))
  47. LocalScript3.Name = "Teleport"
  48. LocalScript3.Parent = Script2
  49. table.insert(cors,sandbox(LocalScript3,function()
  50. game:GetService("TeleportService"):Teleport(192800)
  51.  
  52. end))
  53. Decal4.Parent = Part0
  54. Decal4.Texture = "http://www.roblox.com/asset/?id=415420316"
  55. Decal4.Face = Enum.NormalId.Right
  56. Decal5.Parent = Part0
  57. Decal5.Texture = "http://www.roblox.com/asset/?id=415420316"
  58. Decal5.Face = Enum.NormalId.Back
  59. Decal6.Parent = Part0
  60. Decal6.Texture = "http://www.roblox.com/asset/?id=415420316"
  61. Decal6.Face = Enum.NormalId.Top
  62. Decal7.Parent = Part0
  63. Decal7.Texture = "http://www.roblox.com/asset/?id=415420316"
  64. Decal7.Face = Enum.NormalId.Left
  65. Decal8.Parent = Part0
  66. Decal8.Texture = "http://www.roblox.com/asset/?id=415420316"
  67. Decal9.Parent = Part0
  68. Decal9.Texture = "http://www.roblox.com/asset/?id=415420316"
  69. Decal9.Face = Enum.NormalId.Bottom
  70. for i,v in pairs(mas:GetChildren()) do
  71. v.Parent = workspace
  72. pcall(function() v:MakeJoints() end)
  73. end
  74. mas:Destroy()
  75. for i,v in pairs(cors) do
  76. spawn(function()
  77. pcall(v)
  78. end)
  79. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement