Advertisement
creepstu

Tower Of Fun (roblox script)

Mar 20th, 2023
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.07 KB | Source Code | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local TextButton = Instance.new("TextButton")
  4. local TextLabel = Instance.new("TextLabel")
  5. local TextButton_2 = Instance.new("TextButton")
  6.  
  7. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  8. ScreenGui.ResetOnSpawn = false
  9. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  10.  
  11. Frame.Parent = ScreenGui
  12. Frame.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
  13. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  14. Frame.Position = UDim2.new(0.406716406, 0, 0.896226406, 0)
  15. Frame.Size = UDim2.new(0, 150, 0, 55)
  16.  
  17. TextButton.Parent = Frame
  18. TextButton.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
  19. TextButton.BorderSizePixel = 0
  20. TextButton.Position = UDim2.new(0.086666666, 0, 0.181818172, 0)
  21. TextButton.Size = UDim2.new(0, 123, 0, 36)
  22. TextButton.Font = Enum.Font.Unknown
  23. TextButton.Text = "TELEPORT"
  24. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  25. TextButton.TextSize = 14.000
  26. TextButton.TextStrokeTransparency = 0.700
  27. TextButton.TextWrapped = true
  28.  
  29. TextLabel.Parent = Frame
  30. TextLabel.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
  31. TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  32. TextLabel.Position = UDim2.new(0.0469999984, 0, -0.300000012, 0)
  33. TextLabel.Size = UDim2.new(0, 136, 0, 15)
  34. TextLabel.Font = Enum.Font.GothamBold
  35. TextLabel.Text = "!Click once after you join!"
  36. TextLabel.TextColor3 = Color3.fromRGB(0, 255, 0)
  37. TextLabel.TextScaled = true
  38. TextLabel.TextSize = 14.000
  39. TextLabel.TextWrapped = true
  40.  
  41. TextButton_2.Parent = Frame
  42. TextButton_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  43. TextButton_2.BackgroundTransparency = 1.000
  44. TextButton_2.Position = UDim2.new(1, 0, -0.309090912, 0)
  45. TextButton_2.Size = UDim2.new(0, 15, 0, 15)
  46. TextButton_2.Font = Enum.Font.GothamBold
  47. TextButton_2.Text = "X"
  48. TextButton_2.TextColor3 = Color3.fromRGB(255, 0, 0)
  49. TextButton_2.TextSize = 14.000
  50. TextButton_2.TextStrokeTransparency = 0.700
  51.  
  52. local function teleportfunction()
  53.     local script = Instance.new('LocalScript', TextButton)
  54.  
  55.     function Teleport(teleportPlace)
  56.         local player = game.Players.LocalPlayer
  57.         player.Character.HumanoidRootPart.CFrame = teleportPlace
  58.     end
  59.    
  60.     script.Parent.MouseButton1Click:Connect(function()
  61.         Teleport(game:GetService("Workspace").Stages.EndStage.Start.CFrame)
  62.     end)
  63. end
  64. coroutine.wrap(teleportfunction)()
  65. local function basicbaldi()
  66.     local script = Instance.new('LocalScript', TextLabel)
  67.  
  68.     while true do
  69.         wait(1)
  70.         script.Parent.TextColor3 = Color3.new(1, 0, 0)
  71.         wait(1)
  72.         script.Parent.TextColor3 = Color3.new(0, 0, 1)
  73.         wait(1)
  74.         script.Parent.TextColor3 = Color3.new(0, 1, 0)
  75.     end
  76. end
  77. coroutine.wrap(basicbaldi)()
  78. local function catvskid()
  79.     local script = Instance.new('LocalScript', TextButton_2)
  80.  
  81.     script.Parent.MouseButton1Click:Connect(function()
  82.         script.Parent.Parent.Parent:Destroy()
  83.     end)
  84. end
  85. coroutine.wrap(catvskid)()
  86. local function kidvsdog()
  87.     local script = Instance.new('LocalScript', ScreenGui)
  88.  
  89.     local frame = script.Parent.Frame
  90.     frame.Active = true
  91.     frame.Selectable = true
  92.     frame.Draggable = true
  93. end
  94. coroutine.wrap(kidvsdog)()
  95.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement