Advertisement
HenloMyDude

cursed gui (SAY -stop BEFORE YOU SR)

Dec 10th, 2019
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1.  
  2. plr = owner
  3. char = plr.Character
  4.  
  5. --[[
  6.  
  7. local screen = Instance.new("Part",workspace)
  8. screen.Anchored = true
  9. screen.Size = Vector3.new(16.25, 12.5, 2)
  10. screen.Position = Vector3.new(0, 12.5 / 2, 0)
  11. local surface = Instance.new("SurfaceGui",screen)
  12. local viewport = Instance.new("ViewportFrame",surface)
  13. viewport.Size = UDim2.new(0, 812, 0, 775)
  14. viewport.BackgroundTransparency = 1
  15. local camera = Instance.new("Camera",viewport)
  16. camera.CFrame = CFrame.new(0, 0, 0)
  17. ]]--
  18.  
  19. NLS([[local screen = Instance.new("ScreenGui", owner:findFirstChildOfClass("PlayerGui"))
  20. local ViewportFrame = Instance.new("ViewportFrame", screen)
  21. ViewportFrame.Size = UDim2.new(1, 0, 1, 36)
  22. ViewportFrame.Position = ViewportFrame.Position + UDim2.new(0,0,0,-36)
  23. ViewportFrame.BackgroundTransparency = 1
  24. ViewportFrame.ImageTransparency = 0
  25. local ViewportCamera = Instance.new("Camera", ViewportFrame)
  26. ViewportFrame.CurrentCamera = ViewportCamera
  27. ViewportCamera.CFrame = workspace.CurrentCamera.CFrame
  28. local e = Instance.new("Model",ViewportFrame)
  29. coroutine.wrap(function()
  30. while game:GetService("RunService").RenderStepped:wait() do
  31. ViewportCamera.CFrame = CFrame.new(0, 0, 0)
  32. end
  33. end)()
  34. for i,v in pairs(workspace:GetDescendants()) do
  35. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  36. local vclone = v:Clone()
  37. vclone.Parent = ViewportFrame
  38. coroutine.wrap(function()
  39. while game:GetService("RunService").RenderStepped:wait() do
  40. if not v.Anchored then
  41. vclone.CFrame = v.CFrame
  42. end
  43. end
  44. end)()
  45. end
  46. end
  47.  
  48. owner.Chatted:connect(function(msg)
  49. if msg == "-stop" then
  50. screen:remove()
  51. end
  52. end)
  53.  
  54. ]],char)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement