Menace00

Roblox Skibid Toilet Siege Defense Script

Jun 29th, 2023
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.72 KB | None | 0 0
  1. -- Bring to you by 7alexv7
  2. -- Enjoy the script!
  3.  
  4. -- Instances:
  5.  
  6. local FlyGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local TextButton = Instance.new("TextButton")
  9. local TextLabel = Instance.new("TextLabel")
  10.  
  11. --Properties:
  12.  
  13. FlyGui.Name = "FlyGui"
  14. FlyGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  15.  
  16. Frame.Parent = FlyGui
  17. Frame.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  18. Frame.BorderSizePixel = 0
  19. Frame.Position = UDim2.new(0.0685602352, 0, 0.168769717, 0)
  20. Frame.Size = UDim2.new(0.264544547, 0, 0.100000024, 0)
  21.  
  22. TextButton.Parent = Frame
  23. TextButton.BackgroundColor3 = Color3.fromRGB(66, 66, 66)
  24. TextButton.BorderSizePixel = 0
  25. TextButton.Position = UDim2.new(0.06324628, 0, 0.400667697, 0)
  26. TextButton.Size = UDim2.new(0.871157169, 0, 0.495614201, 0)
  27. TextButton.Font = Enum.Font.ArialBold
  28. TextButton.Text = "Fly"
  29. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  30. TextButton.TextScaled = true
  31. TextButton.TextSize = 14.000
  32. TextButton.TextStrokeTransparency = 0.000
  33. TextButton.TextWrapped = true
  34.  
  35. TextLabel.Parent = Frame
  36. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  37. TextLabel.Size = UDim2.new(0, 86, 0, 24)
  38. TextLabel.Font = Enum.Font.Oswald
  39. TextLabel.Text = "Made by 7alexv7"
  40. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  41. TextLabel.TextScaled = true
  42. TextLabel.TextSize = 14.000
  43. TextLabel.TextWrapped = true
  44.  
  45. -- Scripts:
  46.  
  47. local function NQWSTGE_fake_script() -- Frame.Fly
  48. local script = Instance.new('LocalScript', Frame)
  49.  
  50. local plr = script.Parent.Parent.Parent.Parent
  51. repeat wait() until plr and plr.Character and plr.Character:findFirstChild("HumanoidRootPart") and plr.Character:findFirstChild("Humanoid")
  52. local mouse = game.Players.LocalPlayer:GetMouse()
  53. repeat wait() until mouse
  54.  
  55. local torso = plr.Character.HumanoidRootPart
  56. local flying = false
  57. local deb = true
  58. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  59. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  60. local maxspeed = 1000
  61. local speed = 50
  62. function Fly()
  63. local bg = Instance.new("BodyGyro", torso)
  64. bg.P = 9e4
  65. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  66. bg.cframe = torso.CFrame
  67. local bv = Instance.new("BodyVelocity", torso)
  68. bv.velocity = Vector3.new(0,0.1,0)
  69. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  70. repeat wait()
  71. plr.Character.Humanoid.PlatformStand = true
  72. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  73. speed = speed+.5+(speed/maxspeed)
  74. if speed > maxspeed then
  75. speed = maxspeed
  76. end
  77. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  78. speed = speed-1
  79. if speed < 0 then
  80. speed = 0
  81. else
  82. speed = 50
  83. end
  84. end
  85. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  86. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  87. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  88. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  89. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  90. else
  91. bv.velocity = Vector3.new(0,0.1,0)
  92. end
  93. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  94. until not flying
  95. ctrl = {f = 0, b = 0, l = 0, r = 0}
  96. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  97.  
  98. bg:Destroy()
  99. bv:Destroy()
  100. plr.Character.Humanoid.PlatformStand = false
  101. speed = 50
  102. end
  103.  
  104. mouse.KeyDown:connect(function(key)
  105. if key:lower() == "e" then
  106. if flying then flying = false
  107. speed = 50
  108. else
  109. flying = true
  110. Fly()
  111.  
  112. end
  113. elseif key:lower() == "w" then
  114. ctrl.f = 1
  115. elseif key:lower() == "s" then
  116. ctrl.b = -1
  117. elseif key:lower() == "a" then
  118. ctrl.l = -1
  119. elseif key:lower() == "d" then
  120. ctrl.r = 1
  121. end
  122. end)
  123. mouse.KeyUp:connect(function(key)
  124. if key:lower() == "w" then
  125. ctrl.f = 0
  126. elseif key:lower() == "s" then
  127. ctrl.b = 0
  128. elseif key:lower() == "a" then
  129. ctrl.l = 0
  130. elseif key:lower() == "d" then
  131. ctrl.r = 0
  132. end
  133. end)
  134.  
  135. plr.Character.Humanoid.StateChanged:Connect(function(o,n)
  136. if n == Enum.HumanoidStateType.Running then
  137. ctrl.f = 1
  138. else
  139. ctrl.f = 0
  140. end
  141.  
  142. end)
  143. script.Parent.TextButton.MouseButton1Click:Connect(function()
  144. if flying then
  145. flying = false
  146. speed = 50
  147. else
  148. flying = true
  149. Fly()
  150. end
  151. end)
  152.  
  153. end
  154. coroutine.wrap(NQWSTGE_fake_script)()
  155. local function RAQA_fake_script() -- Frame.Buttons
  156. local script = Instance.new('LocalScript', Frame)
  157.  
  158. local Trigger = script.Parent.MiniTrext
  159. local IsMini = false
  160. function CreateTween(Instance,Style,Direction,Time,table,RepeatCount,CanRepeat,Delay)
  161. local ts = game:GetService("TweenService")
  162. local TweenInfo = TweenInfo.new(Time,Style,Direction,RepeatCount,CanRepeat,Delay)
  163. local Tween = ts:Create(Instance,TweenInfo,table)
  164. repeat wait() until Tween ~= nil
  165. return Tween
  166.  
  167. end
  168. Trigger.MouseButton1Click:Connect(function()
  169. if IsMini then
  170. CreateTween(script.Parent,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0.5,{Size = UDim2.new(0.265, 0,0.1, 0)},0,false,0.1):Play()
  171. IsMini = false
  172. Trigger.Text = "-"
  173. else
  174. CreateTween(script.Parent,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0.5,{Size = UDim2.new(0.265, 0,0.042, 0)},0,false,0.1):Play()
  175. IsMini = true
  176. Trigger.Text = "+"
  177. end
  178. end)
  179. script.Parent.Delete.MouseButton1Click:Connect(function()
  180. script.Parent.Parent:Destroy()
  181. end)
  182. end
  183. coroutine.wrap(RAQA_fake_script)()
  184. local function TKVUMP_fake_script() -- Frame.Drag Gui
  185. local script = Instance.new('LocalScript', Frame)
  186.  
  187. local UserInputService = game:GetService("UserInputService")
  188.  
  189. local gui = script.Parent
  190.  
  191. local dragging
  192. local dragInput
  193. local dragStart
  194. local startPos
  195.  
  196. local function update(input)
  197. local delta = input.Position - dragStart
  198. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  199. end
  200.  
  201. gui.InputBegan:Connect(function(input)
  202. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  203. dragging = true
  204. dragStart = input.Position
  205. startPos = gui.Position
  206.  
  207. input.Changed:Connect(function()
  208. if input.UserInputState == Enum.UserInputState.End then
  209. dragging = false
  210. end
  211. end)
  212. end
  213. end)
  214.  
  215. gui.InputChanged:Connect(function(input)
  216. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  217. dragInput = input
  218. end
  219. end)
  220.  
  221. UserInputService.InputChanged:Connect(function(input)
  222. if input == dragInput and dragging then
  223. update(input)
  224. end
  225. end)
  226. end
  227. coroutine.wrap(TKVUMP_fake_script)()
Add Comment
Please, Sign In to add comment