Advertisement
bobopopcornboy

Screen

Sep 3rd, 2024 (edited)
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.34 KB | None | 0 0
  1. follow = true
  2. Char = owner.Character.HumanoidRootPart
  3. Screen = Instance.new("Part")
  4. Screen.Size = Vector3.new(6,5,1)
  5. Screen.CFrame = Char.CFrame * CFrame.new(0,0,9)
  6. Screen.Anchored = true
  7. Screen.Parent = script
  8. Screen.Name = "screenpart"
  9. event =  Instance.new("RemoteEvent")
  10. event.Parent = Screen
  11. event.Name = "event"
  12. b1 = Instance.new("Part")
  13. b1.Parent = Screen
  14. b1.CFrame = Screen.CFrame * CFrame.new(-2.5,3,0)
  15. b1.Size = Vector3.new(1,1,1)
  16. b1.Color = Color3.new(0.286275, 0.780392, 0.176471)
  17. b1.Name = "b1"
  18. b2 = Instance.new("Part")
  19. b2.Parent = Screen
  20. b2.CFrame = Screen.CFrame * CFrame.new(-1.5,3,0)
  21. b2.Size = Vector3.new(1,1,1)
  22. b2.Color = Color3.new(1, 0, 0)
  23. b3 = Instance.new("Part")
  24. b3.Parent = Screen
  25. b3.CFrame = Screen.CFrame * CFrame.new(2.5,3,0)
  26. b3.Size = Vector3.new(1,1,1)
  27. b3.Color = Color3.new(0.368627, 0.368627, 0.368627)
  28.  
  29. c1 = Instance.new("WeldConstraint")
  30. c1.Part0 = b1
  31. c1.Part1 = Screen
  32. c1.Parent = Screen
  33.  
  34. c1 = Instance.new("WeldConstraint")
  35. c1.Part0 = b2
  36. c1.Part1 = Screen
  37. c1.Parent = Screen
  38.  
  39. c1 = Instance.new("WeldConstraint")
  40. c1.Part0 = b3
  41. c1.Part1 = Screen
  42. c1.Parent = Screen
  43.  
  44. cb1 = Instance.new("ClickDetector")
  45. cb1.Parent = b1
  46. cb1.Name = "cd"
  47. cb2 = Instance.new("ClickDetector")
  48. cb2.Parent = b2
  49. cb3 = Instance.new("ClickDetector")
  50. cb3.Parent = b3
  51.  
  52. sg = Instance.new("SurfaceGui")
  53. sg.Parent = Screen
  54. sg.Face = "Back"
  55. sg.Name = "sg"
  56. sf = Instance.new("ScrollingFrame")
  57. sf.Parent = sg
  58. sf.Size = UDim2.new(1,0,1,0)
  59. sf.Name = "sf"
  60. sf.AutomaticSize = "Y"
  61. textbox = Instance.new("TextBox")
  62. textbox.Parent = sf
  63. textbox.Size = UDim2.new(1,0,1,0)
  64. textbox.TextSize = 25
  65. textbox.TextXAlignment = "Left"
  66. textbox.TextYAlignment = "Top"
  67. textbox.Name = "tb"
  68. textbox.ClearTextOnFocus = false
  69. textbox.MultiLine = true
  70. code = ""
  71.  
  72. cb3.MouseClick:Connect(function(player)
  73.     Char = owner.Character.HumanoidRootPart
  74.     if player == owner then
  75.         follow = not follow
  76.     end
  77. end)
  78.  
  79. cb1.MouseClick:Connect(function(player)
  80.     print(code)
  81.     if player == owner then
  82.         loadstring(code)()
  83.     end
  84. end)
  85.  
  86. cb2.MouseClick:Connect(function(player)
  87.     if player == owner then
  88.         Screen:Destroy()
  89.     end
  90. end)
  91.  
  92. event.OnServerEvent:Connect(function(player,arg)
  93.     code = arg
  94. end)
  95.  
  96.  
  97. while wait() do
  98.     if follow then
  99.         Screen.CFrame = Char.CFrame * CFrame.new(0,0,-9)
  100.     end
  101.     if not Screen then
  102.       break
  103.     end
  104. end
Tags: Roblox
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement