lgrocks11

sweather

Jul 25th, 2020 (edited)
2,497
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 32.55 KB | None | 0 0
  1. local WRHax = Instance.new("ScreenGui")
  2. local Topbar = Instance.new("Frame")
  3. local TextLabel = Instance.new("TextLabel")
  4. local exitbut = Instance.new("TextButton")
  5. local minibut = Instance.new("TextButton")
  6. local Mainframe = Instance.new("Frame")
  7. local ImageLabel = Instance.new("ImageLabel")
  8. local wswitchframe = Instance.new("Frame")
  9. local weatherswitchbut = Instance.new("TextButton")
  10. local ultrabrite = Instance.new("Frame")
  11. local ultrabrightbut = Instance.new("TextButton")
  12. local waypointinfobut = Instance.new("TextButton")
  13. local waypointmenu = Instance.new("Frame")
  14. local keybindinfoframe = Instance.new("Frame")
  15. local keybindinfolab = Instance.new("TextLabel")
  16. local keybindexitbut = Instance.new("TextButton")
  17. local keybindinfolabel = Instance.new("TextLabel")
  18. local hangselfbut = Instance.new("TextButton")
  19. local lightningbut = Instance.new("TextButton")
  20. local spawnbikebut = Instance.new("TextButton")
  21. local player = game.Players.LocalPlayer
  22. local mouse = player:GetMouse()
  23. local character = nil
  24. local function getcharacter()
  25.     return player.Character
  26. end
  27. bind = "b"
  28. bind2 = "v"
  29. tpx = Vector3.new(0, 0, 0)
  30. specbind = "z"
  31. specbind2 = "x"
  32. spectpx = Vector3.new(0, 0, 0)
  33.  
  34. WRHax.Name = "WRHax"
  35. WRHax.Parent = game.CoreGui
  36. WRHax.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  37.  
  38. Topbar.Name = "Topbar"
  39. Topbar.Parent = WRHax
  40. Topbar.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  41. Topbar.BorderColor3 = Color3.fromRGB(0, 0, 0)
  42. Topbar.BorderSizePixel = 0
  43. Topbar.Position = UDim2.new(0.183506668, 0, 0.336434126, 0)
  44. Topbar.Size = UDim2.new(0, 512, 0, 15)
  45. Topbar.ZIndex = 2
  46.  
  47. TextLabel.Parent = Topbar
  48. TextLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  49. TextLabel.BackgroundTransparency = 1.000
  50. TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  51. TextLabel.Position = UDim2.new(0.0273972601, 0, 0.400000006, 0)
  52. TextLabel.Size = UDim2.new(0, 45, 0, 2)
  53. TextLabel.ZIndex = 3
  54. TextLabel.Font = Enum.Font.SourceSans
  55. TextLabel.Text = "Sweather_v1.2"
  56. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  57. TextLabel.TextSize = 14.000
  58.  
  59. exitbut.Name = "exitbut"
  60. exitbut.Parent = Topbar
  61. exitbut.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  62. exitbut.BorderColor3 = Color3.fromRGB(0, 0, 0)
  63. exitbut.BorderSizePixel = 0
  64. exitbut.Position = UDim2.new(0.960708141, 0, 0, 0)
  65. exitbut.Size = UDim2.new(0, 20, 0, 15)
  66. exitbut.ZIndex = 3
  67. exitbut.Font = Enum.Font.SourceSans
  68. exitbut.Text = "X"
  69. exitbut.TextColor3 = Color3.fromRGB(255, 255, 255)
  70. exitbut.TextScaled = true
  71. exitbut.TextSize = 14.000
  72. exitbut.TextWrapped = true
  73.  
  74. minibut.Name = "minibut"
  75. minibut.Parent = Topbar
  76. minibut.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  77. minibut.BorderColor3 = Color3.fromRGB(0, 0, 0)
  78. minibut.BorderSizePixel = 0
  79. minibut.Position = UDim2.new(0.904071391, 0, 0, 0)
  80. minibut.Size = UDim2.new(0, 20, 0, 15)
  81. minibut.ZIndex = 3
  82. minibut.Font = Enum.Font.SourceSans
  83. minibut.Text = "-"
  84. minibut.TextColor3 = Color3.fromRGB(255, 255, 255)
  85. minibut.TextScaled = true
  86. minibut.TextSize = 14.000
  87. minibut.TextWrapped = true
  88.  
  89. Mainframe.Name = "Mainframe"
  90. Mainframe.Parent = Topbar
  91. Mainframe.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  92. Mainframe.BorderColor3 = Color3.fromRGB(255, 255, 255)
  93. Mainframe.BorderSizePixel = 0
  94. Mainframe.Position = UDim2.new(0, 0, 0.999998987, 0)
  95. Mainframe.Size = UDim2.new(0, 512, 0, 256)
  96. Mainframe.ZIndex = 0
  97.  
  98. ImageLabel.Parent = Mainframe
  99. ImageLabel.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  100. ImageLabel.BackgroundTransparency = 1.000
  101. ImageLabel.BorderSizePixel = 0
  102. ImageLabel.Size = UDim2.new(0, 512, 0, 256)
  103. ImageLabel.Image = "rbxgameasset://Images/sweather_ui_backround"
  104. ImageLabel.ImageColor3 = Color3.fromRGB(50, 50, 50)
  105.  
  106. wswitchframe.Name = "wswitchframe"
  107. wswitchframe.Parent = Mainframe
  108. wswitchframe.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  109. wswitchframe.BorderColor3 = Color3.fromRGB(255, 0, 0)
  110. wswitchframe.Position = UDim2.new(0.0489236787, 0, 0.05078125, 0)
  111. wswitchframe.Size = UDim2.new(0, 98, 0, 27)
  112.  
  113. weatherswitchbut.Name = "weatherswitchbut"
  114. weatherswitchbut.Parent = wswitchframe
  115. weatherswitchbut.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  116. weatherswitchbut.BorderColor3 = Color3.fromRGB(167, 0, 0)
  117. weatherswitchbut.BorderSizePixel = 2
  118. weatherswitchbut.Size = UDim2.new(0, 98, 0, 27)
  119. weatherswitchbut.Font = Enum.Font.SourceSans
  120. weatherswitchbut.Text = "Toggle Weather"
  121. weatherswitchbut.TextColor3 = Color3.fromRGB(255, 255, 255)
  122. weatherswitchbut.TextSize = 14.000
  123.  
  124. ultrabrite.Name = "ultrabrite"
  125. ultrabrite.Parent = Mainframe
  126. ultrabrite.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  127. ultrabrite.BorderColor3 = Color3.fromRGB(0, 255, 0)
  128. ultrabrite.Position = UDim2.new(0.0489236712, 0, 0.1875, 0)
  129. ultrabrite.Size = UDim2.new(0, 97, 0, 27)
  130.  
  131. ultrabrightbut.Name = "ultrabrightbut"
  132. ultrabrightbut.Parent = ultrabrite
  133. ultrabrightbut.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  134. ultrabrightbut.BorderColor3 = Color3.fromRGB(167, 0, 0)
  135. ultrabrightbut.BorderSizePixel = 2
  136. ultrabrightbut.Size = UDim2.new(0, 98, 0, 27)
  137. ultrabrightbut.Font = Enum.Font.SourceSans
  138. ultrabrightbut.Text = "Ultrabright"
  139. ultrabrightbut.TextColor3 = Color3.fromRGB(255, 255, 255)
  140. ultrabrightbut.TextSize = 14.000
  141.  
  142. waypointinfobut.Name = "waypointinfobut"
  143. waypointinfobut.Parent = Mainframe
  144. waypointinfobut.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  145. waypointinfobut.BorderColor3 = Color3.fromRGB(167, 0, 0)
  146. waypointinfobut.BorderSizePixel = 2
  147. waypointinfobut.Position = UDim2.new(0, 25, 0, 84)
  148. waypointinfobut.Size = UDim2.new(0, 98, 0, 27)
  149. waypointinfobut.Font = Enum.Font.SourceSans
  150. waypointinfobut.Text = "Waypoint & Cinimatic Info"
  151. waypointinfobut.TextColor3 = Color3.fromRGB(255, 255, 255)
  152. waypointinfobut.TextScaled = true
  153. waypointinfobut.TextSize = 14.000
  154. waypointinfobut.TextWrapped = true
  155.  
  156. waypointmenu.Name = "waypointmenu"
  157. waypointmenu.Parent = waypointinfobut
  158. waypointmenu.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  159. waypointmenu.BorderSizePixel = 0
  160. waypointmenu.Position = UDim2.new(5.08321047, 0, -3.66666675, 0)
  161. waypointmenu.Size = UDim2.new(0, 140, 0, 15)
  162. waypointmenu.Visible = false
  163.  
  164. keybindinfoframe.Name = "keybindinfoframe"
  165. keybindinfoframe.Parent = waypointmenu
  166. keybindinfoframe.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  167. keybindinfoframe.BorderColor3 = Color3.fromRGB(27, 42, 53)
  168. keybindinfoframe.BorderSizePixel = 0
  169. keybindinfoframe.Position = UDim2.new(-0.00250331336, 0, 1, 0)
  170. keybindinfoframe.Size = UDim2.new(0, 140, 0, 84)
  171.  
  172. keybindinfolab.Name = "keybindinfolab"
  173. keybindinfolab.Parent = keybindinfoframe
  174. keybindinfolab.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  175. keybindinfolab.BackgroundTransparency = 1.000
  176. keybindinfolab.BorderSizePixel = 0
  177. keybindinfolab.Size = UDim2.new(0, 140, 0, 84)
  178. keybindinfolab.Font = Enum.Font.SourceSans
  179. keybindinfolab.Text = "To set a waypoint, press B, to go to a waypoint, press V, and to toggle Cinematic mode, press Shift + P."
  180. keybindinfolab.TextColor3 = Color3.fromRGB(255, 255, 255)
  181. keybindinfolab.TextScaled = true
  182. keybindinfolab.TextSize = 14.000
  183. keybindinfolab.TextWrapped = true
  184.  
  185. keybindexitbut.Name = "keybindexitbut"
  186. keybindexitbut.Parent = waypointmenu
  187. keybindexitbut.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  188. keybindexitbut.BorderColor3 = Color3.fromRGB(0, 0, 0)
  189. keybindexitbut.BorderSizePixel = 0
  190. keybindexitbut.Position = UDim2.new(0.857142866, 0, 0, 0)
  191. keybindexitbut.Size = UDim2.new(0, 20, 0, 15)
  192. keybindexitbut.ZIndex = 3
  193. keybindexitbut.Font = Enum.Font.SourceSans
  194. keybindexitbut.Text = "X"
  195. keybindexitbut.TextColor3 = Color3.fromRGB(255, 255, 255)
  196. keybindexitbut.TextScaled = true
  197. keybindexitbut.TextSize = 16.000
  198. keybindexitbut.TextWrapped = true
  199.  
  200. keybindinfolabel.Name = "keybindinfolabel"
  201. keybindinfolabel.Parent = waypointmenu
  202. keybindinfolabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  203. keybindinfolabel.BackgroundTransparency = 1.000
  204. keybindinfolabel.BorderSizePixel = 0
  205. keybindinfolabel.Size = UDim2.new(0, 77, 0, 15)
  206. keybindinfolabel.Font = Enum.Font.SourceSans
  207. keybindinfolabel.Text = "Keybind Info"
  208. keybindinfolabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  209. keybindinfolabel.TextScaled = true
  210. keybindinfolabel.TextSize = 14.000
  211. keybindinfolabel.TextWrapped = true
  212.  
  213. hangselfbut.Name = "hangselfbut"
  214. hangselfbut.Parent = Mainframe
  215. hangselfbut.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  216. hangselfbut.BorderColor3 = Color3.fromRGB(167, 0, 0)
  217. hangselfbut.BorderSizePixel = 2
  218. hangselfbut.Position = UDim2.new(0, 25, 0, 119)
  219. hangselfbut.Size = UDim2.new(0, 98, 0, 27)
  220. hangselfbut.Font = Enum.Font.SourceSans
  221. hangselfbut.Text = "Hang Self"
  222. hangselfbut.TextColor3 = Color3.fromRGB(255, 255, 255)
  223. hangselfbut.TextSize = 14.000
  224.  
  225. lightningbut.Name = "lightningbut"
  226. lightningbut.Parent = Mainframe
  227. lightningbut.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  228. lightningbut.BorderColor3 = Color3.fromRGB(167, 0, 0)
  229. lightningbut.BorderSizePixel = 2
  230. lightningbut.Position = UDim2.new(0, 25, 0, 155)
  231. lightningbut.Size = UDim2.new(0, 98, 0, 27)
  232. lightningbut.Font = Enum.Font.SourceSans
  233. lightningbut.Text = "Lightning"
  234. lightningbut.TextColor3 = Color3.fromRGB(255, 255, 255)
  235. lightningbut.TextSize = 14.000
  236.  
  237. spawnbikebut.Name = "spawnbikebut"
  238. spawnbikebut.Parent = Mainframe
  239. spawnbikebut.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  240. spawnbikebut.BorderColor3 = Color3.fromRGB(167, 0, 0)
  241. spawnbikebut.BorderSizePixel = 2
  242. spawnbikebut.Position = UDim2.new(0, 25, 0, 191)
  243. spawnbikebut.Size = UDim2.new(0, 98, 0, 27)
  244. spawnbikebut.Font = Enum.Font.SourceSans
  245. spawnbikebut.Text = "Spawn Bike"
  246. spawnbikebut.TextColor3 = Color3.fromRGB(255, 255, 255)
  247. spawnbikebut.TextSize = 14.000
  248.  
  249. function quietkids(weatherscript)
  250.     local children = weatherscript:GetChildren()
  251.     for i = 1, #children do
  252.         local child = children[i]
  253.         if child:IsA("Sound") then
  254.             child.Volume = 0
  255.         end
  256.     end
  257. end
  258. function loudkids(weatherscript)
  259.     local children = weatherscript:GetChildren()
  260.     for i = 1, #children do
  261.         local child = children[i]
  262.         if child:IsA("Sound") then
  263.             child.Volume = 0.6
  264.         end
  265.     end
  266. end
  267.  
  268. Topbar.MouseEnter:Connect(function()
  269.     Topbar.Selectable = true
  270.     Topbar.Active = true
  271.     Topbar.Draggable = true
  272. end)
  273.  
  274. Topbar.MouseLeave:Connect(function()
  275.     Topbar.Selectable = false
  276.     Topbar.Active = false
  277.     Topbar.Draggable = false
  278. end)
  279.  
  280. local function onexitbutButtonActivated()
  281.     WRHax.Parent = nil
  282. end
  283.  
  284. exitbut.Activated:Connect(onexitbutButtonActivated)
  285.  
  286. exitbut.MouseEnter:Connect(function()
  287.     exitbut.BackgroundColor3 = Color3.new(255, 0, 0)
  288. end)
  289.  
  290. exitbut.MouseLeave:Connect(function()
  291.     exitbut.BackgroundColor3 = Color3.new(0, 0, 0)
  292. end)
  293.  
  294. minibuttoggled = false
  295.  
  296. local function onminibutButtonActivated()
  297.     if minibuttoggled == false then
  298.         minibut.TextColor3 = Color3.new(255,0,0)
  299.         Mainframe.Visible = false
  300.         minibuttoggled = true
  301.     else       
  302.         minibut.TextColor3 = Color3.new(255,255,255)
  303.         Mainframe.Visible = true
  304.         minibuttoggled = false
  305.     end
  306. end
  307.  
  308. minibut.Activated:Connect(onminibutButtonActivated)
  309.  
  310. minibut.MouseEnter:Connect(function()
  311.     minibut.BackgroundColor3 = Color3.new(255, 0, 0)
  312. end)
  313.  
  314. minibut.MouseLeave:Connect(function()
  315.     minibut.BackgroundColor3 = Color3.new(0, 0, 0)
  316. end)
  317.  
  318. ultrabrightbuttoggled = false
  319. lightingvar = game.Lighting
  320.  
  321. local function onultrabrightbutButtonActivated()
  322.     if ultrabrightbuttoggled == false then
  323.         ultrabrightbut.Position = UDim2.new(0, 30, 0, 0)
  324.         lightingvar.Brightness = 10
  325.         ultrabrightbuttoggled = true
  326.     else
  327.         ultrabrightbut.Position = UDim2.new(0, 0, 0, 0)
  328.         lightingvar.Brightness = 1
  329.         ultrabrightbuttoggled = false
  330.     end
  331. end
  332.  
  333. ultrabrightbut.Activated:Connect(onultrabrightbutButtonActivated)
  334.  
  335. local function onwaypointinfobutButtonActivated()
  336.     waypointinfobut.waypointmenu.Visible = true
  337. end
  338.  
  339. waypointinfobut.Activated:Connect(onwaypointinfobutButtonActivated)
  340.  
  341. local function onkeybindexitbutButtonActivated()
  342.     waypointinfobut.waypointmenu.Visible = false
  343. end
  344.  
  345. keybindexitbut.Activated:Connect(onkeybindexitbutButtonActivated)
  346.  
  347. keybindexitbut.MouseEnter:Connect(function()
  348.     keybindexitbut.BackgroundColor3 = Color3.new(255, 0, 0)
  349. end)
  350.  
  351. keybindexitbut.MouseLeave:Connect(function()
  352.     keybindexitbut.BackgroundColor3 = Color3.new(0, 0, 0)
  353. end)
  354.  
  355. game.StarterGui:SetCore("SendNotification", {
  356.     Title = "Spectator Camera + Waypoints";
  357.     Text = "Successfully loaded Spectator Camera + Waypoints.";
  358. })
  359. game.StarterGui:SetCore("SendNotification", {
  360.     Title = "SC + W Keybindings";
  361.     Text = "Shift + P: Enter Spectator Camera, Z: Set a Waypoint at Camera's position, X: Teleport to Waypoint.";
  362. })
  363.  
  364.  
  365. mouse.KeyDown:connect(function(speckey)
  366.     if speckey == specbind then
  367.         spectpx = game:GetService("Workspace").CurrentCamera.CFrame.Position
  368.         spectpxstr = "Successfully set a waypoint at your camera's location. " .. "(" .. tostring(spectpx) .. ")"
  369.         game.StarterGui:SetCore("SendNotification", {
  370.             Title = "Waypoints";
  371.             Text = spectpxstr;
  372.         })
  373.  
  374.     end
  375. end)
  376.  
  377. mouse.KeyDown:connect(function(speckey)
  378.     if speckey == specbind2 then
  379.         getcharacter().HumanoidRootPart.CFrame = CFrame.new(spectpx)
  380.         spectpxstr = "Successfully teleported you to your last waypoint. " .. "(" .. tostring(spectpx) .. ")"
  381.         game.StarterGui:SetCore("SendNotification", {
  382.             Title = "Waypoints";
  383.             Text = spectpxstr;
  384.         })
  385.  
  386.     end
  387. end)
  388.  
  389. function sandbox(var,func)
  390. local env = getfenv(func)
  391. local newenv = setmetatable({},{
  392. __index = function(self,k)
  393. if k=="script" then
  394. return var
  395. else
  396. return env[k]
  397. end
  398. end,
  399. })
  400. setfenv(func,newenv)
  401. return func
  402. end
  403. cors = {}
  404. mas = Instance.new("Model",game:GetService("Lighting"))
  405. LocalScript0 = Instance.new("LocalScript")
  406. LocalScript0.Name = "FreeCamera"
  407. LocalScript0.Parent = mas
  408. table.insert(cors,sandbox(LocalScript0,function()
  409. -----------------------------------------------------------------------
  410. -- Freecam
  411. -- Cinematic free camera for spectating and video production.
  412. ------------------------------------------------------------------------
  413.  
  414. local pi    = math.pi
  415. local abs   = math.abs
  416. local clamp = math.clamp
  417. local exp   = math.exp
  418. local rad   = math.rad
  419. local sign  = math.sign
  420. local sqrt  = math.sqrt
  421. local tan   = math.tan
  422.  
  423. local ContextActionService = game:GetService("ContextActionService")
  424. local Players = game:GetService("Players")
  425. local RunService = game:GetService("RunService")
  426. local StarterGui = game:GetService("StarterGui")
  427. local UserInputService = game:GetService("UserInputService")
  428.  
  429. local LocalPlayer = Players.LocalPlayer
  430. if not LocalPlayer then
  431. Players:GetPropertyChangedSignal("LocalPlayer"):Wait()
  432. LocalPlayer = Players.LocalPlayer
  433. end
  434.  
  435. local Camera = workspace.CurrentCamera
  436. workspace:GetPropertyChangedSignal("CurrentCamera"):Connect(function()
  437. local newCamera = workspace.CurrentCamera
  438. if newCamera then
  439. Camera = newCamera
  440. end
  441. end)
  442.  
  443. ------------------------------------------------------------------------
  444.  
  445. local TOGGLE_INPUT_PRIORITY = Enum.ContextActionPriority.Low.Value
  446. local INPUT_PRIORITY = Enum.ContextActionPriority.High.Value
  447. local FREECAM_MACRO_KB = {Enum.KeyCode.LeftShift, Enum.KeyCode.P}
  448.  
  449. local NAV_GAIN = Vector3.new(1, 1, 1)*64
  450. local PAN_GAIN = Vector2.new(0.75, 1)*8
  451. local FOV_GAIN = 300
  452.  
  453. local PITCH_LIMIT = rad(90)
  454.  
  455. local VEL_STIFFNESS = 1.5
  456. local PAN_STIFFNESS = 1.0
  457. local FOV_STIFFNESS = 4.0
  458.  
  459. ------------------------------------------------------------------------
  460.  
  461. local Spring = {} do
  462. Spring.__index = Spring
  463.  
  464. function Spring.new(freq, pos)
  465. local self = setmetatable({}, Spring)
  466. self.f = freq
  467. self.p = pos
  468. self.v = pos*0
  469. return self
  470. end
  471.  
  472. function Spring:Update(dt, goal)
  473. local f = self.f*2*pi
  474. local p0 = self.p
  475. local v0 = self.v
  476.  
  477. local offset = goal - p0
  478. local decay = exp(-f*dt)
  479.  
  480. local p1 = goal + (v0*dt - offset*(f*dt + 1))*decay
  481. local v1 = (f*dt*(offset*f - v0) + v0)*decay
  482.  
  483. self.p = p1
  484. self.v = v1
  485.  
  486. return p1
  487. end
  488.  
  489. function Spring:Reset(pos)
  490. self.p = pos
  491. self.v = pos*0
  492. end
  493. end
  494.  
  495. ------------------------------------------------------------------------
  496.  
  497. local cameraPos = Vector3.new()
  498. local cameraRot = Vector2.new()
  499. local cameraFov = 0
  500.  
  501. local velSpring = Spring.new(VEL_STIFFNESS, Vector3.new())
  502. local panSpring = Spring.new(PAN_STIFFNESS, Vector2.new())
  503. local fovSpring = Spring.new(FOV_STIFFNESS, 0)
  504.  
  505. ------------------------------------------------------------------------
  506.  
  507. local Input = {} do
  508. local thumbstickCurve do
  509. local K_CURVATURE = 2.0
  510. local K_DEADZONE = 0.15
  511.  
  512. local function fCurve(x)
  513. return (exp(K_CURVATURE*x) - 1)/(exp(K_CURVATURE) - 1)
  514. end
  515.  
  516. local function fDeadzone(x)
  517. return fCurve((x - K_DEADZONE)/(1 - K_DEADZONE))
  518. end
  519.  
  520. function thumbstickCurve(x)
  521. return sign(x)*clamp(fDeadzone(abs(x)), 0, 1)
  522. end
  523. end
  524.  
  525. local gamepad = {
  526. ButtonX = 0,
  527. ButtonY = 0,
  528. DPadDown = 0,
  529. DPadUp = 0,
  530. ButtonL2 = 0,
  531. ButtonR2 = 0,
  532. Thumbstick1 = Vector2.new(),
  533. Thumbstick2 = Vector2.new(),
  534. }
  535.  
  536. local keyboard = {
  537. W = 0,
  538. A = 0,
  539. S = 0,
  540. D = 0,
  541. E = 0,
  542. Q = 0,
  543. U = 0,
  544. H = 0,
  545. J = 0,
  546. K = 0,
  547. I = 0,
  548. Y = 0,
  549. Up = 0,
  550. Down = 0,
  551. LeftShift = 0,
  552. RightShift = 0,
  553. }
  554.  
  555. local mouse = {
  556. Delta = Vector2.new(),
  557. MouseWheel = 0,
  558. }
  559.  
  560. local NAV_GAMEPAD_SPEED  = Vector3.new(1, 1, 1)
  561. local NAV_KEYBOARD_SPEED = Vector3.new(1, 1, 1)
  562. local PAN_MOUSE_SPEED    = Vector2.new(1, 1)*(pi/64)
  563. local PAN_GAMEPAD_SPEED  = Vector2.new(1, 1)*(pi/8)
  564. local FOV_WHEEL_SPEED    = 1.0
  565. local FOV_GAMEPAD_SPEED  = 0.25
  566. local NAV_ADJ_SPEED      = 0.75
  567. local NAV_SHIFT_MUL      = 5
  568.  
  569. local navSpeed = 1
  570.  
  571. function Input.Vel(dt)
  572. navSpeed = clamp(navSpeed + dt*(keyboard.Up - keyboard.Down)*NAV_ADJ_SPEED, 0.01, 4)
  573.  
  574. local kGamepad = Vector3.new(
  575. thumbstickCurve(gamepad.Thumbstick1.x),
  576. thumbstickCurve(gamepad.ButtonR2) - thumbstickCurve(gamepad.ButtonL2),
  577. thumbstickCurve(-gamepad.Thumbstick1.y)
  578. )*NAV_GAMEPAD_SPEED
  579.  
  580. local kKeyboard = Vector3.new(
  581. keyboard.D - keyboard.A + keyboard.K - keyboard.H,
  582. keyboard.E - keyboard.Q + keyboard.I - keyboard.Y,
  583. keyboard.S - keyboard.W + keyboard.J - keyboard.U
  584. )*NAV_KEYBOARD_SPEED
  585.  
  586. local shift = UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) or UserInputService:IsKeyDown(Enum.KeyCode.RightShift)
  587.  
  588. return (kGamepad + kKeyboard)*(navSpeed*(shift and NAV_SHIFT_MUL or 1))
  589. end
  590.  
  591. function Input.Pan(dt)
  592. local kGamepad = Vector2.new(
  593. thumbstickCurve(gamepad.Thumbstick2.y),
  594. thumbstickCurve(-gamepad.Thumbstick2.x)
  595. )*PAN_GAMEPAD_SPEED
  596. local kMouse = mouse.Delta*PAN_MOUSE_SPEED
  597. mouse.Delta = Vector2.new()
  598. return kGamepad + kMouse
  599. end
  600.  
  601. function Input.Fov(dt)
  602. local kGamepad = (gamepad.ButtonX - gamepad.ButtonY)*FOV_GAMEPAD_SPEED
  603. local kMouse = mouse.MouseWheel*FOV_WHEEL_SPEED
  604. mouse.MouseWheel = 0
  605. return kGamepad + kMouse
  606. end
  607.  
  608. do
  609. local function Keypress(action, state, input)
  610. keyboard[input.KeyCode.Name] = state == Enum.UserInputState.Begin and 1 or 0
  611. return Enum.ContextActionResult.Sink
  612. end
  613.  
  614. local function GpButton(action, state, input)
  615. gamepad[input.KeyCode.Name] = state == Enum.UserInputState.Begin and 1 or 0
  616. return Enum.ContextActionResult.Sink
  617. end
  618.  
  619. local function MousePan(action, state, input)
  620. local delta = input.Delta
  621. mouse.Delta = Vector2.new(-delta.y, -delta.x)
  622. return Enum.ContextActionResult.Sink
  623. end
  624.  
  625. local function Thumb(action, state, input)
  626. gamepad[input.KeyCode.Name] = input.Position
  627. return Enum.ContextActionResult.Sink
  628. end
  629.  
  630. local function Trigger(action, state, input)
  631. gamepad[input.KeyCode.Name] = input.Position.z
  632. return Enum.ContextActionResult.Sink
  633. end
  634.  
  635. local function MouseWheel(action, state, input)
  636. mouse[input.UserInputType.Name] = -input.Position.z
  637. return Enum.ContextActionResult.Sink
  638. end
  639.  
  640. local function Zero(t)
  641. for k, v in pairs(t) do
  642. t[k] = v*0
  643. end
  644. end
  645.  
  646. function Input.StartCapture()
  647. ContextActionService:BindActionAtPriority("FreecamKeyboard", Keypress, false, INPUT_PRIORITY,
  648. Enum.KeyCode.W, Enum.KeyCode.U,
  649. Enum.KeyCode.A, Enum.KeyCode.H,
  650. Enum.KeyCode.S, Enum.KeyCode.J,
  651. Enum.KeyCode.D, Enum.KeyCode.K,
  652. Enum.KeyCode.E, Enum.KeyCode.I,
  653. Enum.KeyCode.Q, Enum.KeyCode.Y,
  654. Enum.KeyCode.Up, Enum.KeyCode.Down
  655. )
  656. ContextActionService:BindActionAtPriority("FreecamMousePan",          MousePan,   false, INPUT_PRIORITY, Enum.UserInputType.MouseMovement)
  657. ContextActionService:BindActionAtPriority("FreecamMouseWheel",        MouseWheel, false, INPUT_PRIORITY, Enum.UserInputType.MouseWheel)
  658. ContextActionService:BindActionAtPriority("FreecamGamepadButton",     GpButton,   false, INPUT_PRIORITY, Enum.KeyCode.ButtonX, Enum.KeyCode.ButtonY)
  659. ContextActionService:BindActionAtPriority("FreecamGamepadTrigger",    Trigger,    false, INPUT_PRIORITY, Enum.KeyCode.ButtonR2, Enum.KeyCode.ButtonL2)
  660. ContextActionService:BindActionAtPriority("FreecamGamepadThumbstick", Thumb,      false, INPUT_PRIORITY, Enum.KeyCode.Thumbstick1, Enum.KeyCode.Thumbstick2)
  661. end
  662.  
  663. function Input.StopCapture()
  664. navSpeed = 1
  665. Zero(gamepad)
  666. Zero(keyboard)
  667. Zero(mouse)
  668. ContextActionService:UnbindAction("FreecamKeyboard")
  669. ContextActionService:UnbindAction("FreecamMousePan")
  670. ContextActionService:UnbindAction("FreecamMouseWheel")
  671. ContextActionService:UnbindAction("FreecamGamepadButton")
  672. ContextActionService:UnbindAction("FreecamGamepadTrigger")
  673. ContextActionService:UnbindAction("FreecamGamepadThumbstick")
  674. end
  675. end
  676. end
  677.  
  678. local function GetFocusDistance(cameraFrame)
  679. local znear = 0.1
  680. local viewport = Camera.ViewportSize
  681. local projy = 2*tan(cameraFov/2)
  682. local projx = viewport.x/viewport.y*projy
  683. local fx = cameraFrame.rightVector
  684. local fy = cameraFrame.upVector
  685. local fz = cameraFrame.lookVector
  686.  
  687. local minVect = Vector3.new()
  688. local minDist = 512
  689.  
  690. for x = 0, 1, 0.5 do
  691. for y = 0, 1, 0.5 do
  692. local cx = (x - 0.5)*projx
  693. local cy = (y - 0.5)*projy
  694. local offset = fx*cx - fy*cy + fz
  695. local origin = cameraFrame.p + offset*znear
  696. local part, hit = workspace:FindPartOnRay(Ray.new(origin, offset.unit*minDist))
  697. local dist = (hit - origin).magnitude
  698. if minDist > dist then
  699. minDist = dist
  700. minVect = offset.unit
  701. end
  702. end
  703. end
  704.  
  705. return fz:Dot(minVect)*minDist
  706. end
  707.  
  708. ------------------------------------------------------------------------
  709.  
  710. local function StepFreecam(dt)
  711. local vel = velSpring:Update(dt, Input.Vel(dt))
  712. local pan = panSpring:Update(dt, Input.Pan(dt))
  713. local fov = fovSpring:Update(dt, Input.Fov(dt))
  714.  
  715. local zoomFactor = sqrt(tan(rad(70/2))/tan(rad(cameraFov/2)))
  716.  
  717. cameraFov = clamp(cameraFov + fov*FOV_GAIN*(dt/zoomFactor), 1, 120)
  718. cameraRot = cameraRot + pan*PAN_GAIN*(dt/zoomFactor)
  719. cameraRot = Vector2.new(clamp(cameraRot.x, -PITCH_LIMIT, PITCH_LIMIT), cameraRot.y%(2*pi))
  720.  
  721. local cameraCFrame = CFrame.new(cameraPos)*CFrame.fromOrientation(cameraRot.x, cameraRot.y, 0)*CFrame.new(vel*NAV_GAIN*dt)
  722. cameraPos = cameraCFrame.p
  723.  
  724. Camera.CFrame = cameraCFrame
  725. Camera.Focus = cameraCFrame*CFrame.new(0, 0, -GetFocusDistance(cameraCFrame))
  726. Camera.FieldOfView = cameraFov
  727. end
  728.  
  729. ------------------------------------------------------------------------
  730.  
  731. local PlayerState = {} do
  732. local mouseIconEnabled
  733. local cameraSubject
  734. local cameraType
  735. local cameraFocus
  736. local cameraCFrame
  737. local cameraFieldOfView
  738. local screenGuis = {}
  739. local coreGuis = {
  740. Backpack = true,
  741. Chat = true,
  742. Health = true,
  743. PlayerList = true,
  744. }
  745. local setCores = {
  746. BadgesNotificationsActive = true,
  747. PointsNotificationsActive = true,
  748. }
  749.  
  750. -- Save state and set up for freecam
  751. function PlayerState.Push()
  752. for name in pairs(coreGuis) do
  753. coreGuis[name] = StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType[name])
  754. StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType[name], false)
  755. end
  756. for name in pairs(setCores) do
  757. setCores[name] = StarterGui:GetCore(name)
  758. StarterGui:SetCore(name, false)
  759. end
  760. local playergui = LocalPlayer:FindFirstChildOfClass("PlayerGui")
  761. if playergui then
  762. for _, gui in pairs(playergui:GetChildren()) do
  763. if gui:IsA("ScreenGui") and gui.Enabled then
  764. screenGuis[#screenGuis + 1] = gui
  765. gui.Enabled = false
  766. end
  767. end
  768. end
  769.  
  770. cameraFieldOfView = Camera.FieldOfView
  771. Camera.FieldOfView = 70
  772.  
  773. cameraType = Camera.CameraType
  774. Camera.CameraType = Enum.CameraType.Custom
  775.  
  776. cameraSubject = Camera.CameraSubject
  777. Camera.CameraSubject = nil
  778.  
  779. cameraCFrame = Camera.CFrame
  780. cameraFocus = Camera.Focus
  781.  
  782. mouseIconEnabled = UserInputService.MouseIconEnabled
  783. UserInputService.MouseIconEnabled = false
  784.  
  785. mouseBehavior = UserInputService.MouseBehavior
  786. UserInputService.MouseBehavior = Enum.MouseBehavior.Default
  787. end
  788.  
  789. -- Restore state
  790. function PlayerState.Pop()
  791. for name, isEnabled in pairs(coreGuis) do
  792. StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType[name], isEnabled)
  793. end
  794. for name, isEnabled in pairs(setCores) do
  795. StarterGui:SetCore(name, isEnabled)
  796. end
  797. for _, gui in pairs(screenGuis) do
  798. if gui.Parent then
  799. gui.Enabled = true
  800. end
  801. end
  802.  
  803. Camera.FieldOfView = cameraFieldOfView
  804. cameraFieldOfView = nil
  805.  
  806. Camera.CameraType = cameraType
  807. cameraType = nil
  808.  
  809. Camera.CameraSubject = cameraSubject
  810. cameraSubject = nil
  811.  
  812. Camera.CFrame = cameraCFrame
  813. cameraCFrame = nil
  814.  
  815. Camera.Focus = cameraFocus
  816. cameraFocus = nil
  817.  
  818. UserInputService.MouseIconEnabled = mouseIconEnabled
  819. mouseIconEnabled = nil
  820.  
  821. UserInputService.MouseBehavior = mouseBehavior
  822. mouseBehavior = nil
  823. end
  824. end
  825.  
  826. local function StartFreecam()
  827. local cameraCFrame = Camera.CFrame
  828. cameraRot = Vector2.new(cameraCFrame:toEulerAnglesYXZ())
  829. cameraPos = cameraCFrame.p
  830. cameraFov = Camera.FieldOfView
  831.  
  832. velSpring:Reset(Vector3.new())
  833. panSpring:Reset(Vector2.new())
  834. fovSpring:Reset(0)
  835.  
  836. PlayerState.Push()
  837. RunService:BindToRenderStep("Freecam", Enum.RenderPriority.Camera.Value, StepFreecam)
  838. Input.StartCapture()
  839. end
  840.  
  841. local function StopFreecam()
  842. Input.StopCapture()
  843. RunService:UnbindFromRenderStep("Freecam")
  844. PlayerState.Pop()
  845. end
  846.  
  847. ------------------------------------------------------------------------
  848.  
  849. do
  850. local enabled = false
  851.  
  852. local function ToggleFreecam()
  853. if enabled then
  854. StopFreecam()
  855. else
  856. StartFreecam()
  857. end
  858. enabled = not enabled
  859. end
  860.  
  861. local function CheckMacro(macro)
  862. for i = 1, #macro - 1 do
  863. if not UserInputService:IsKeyDown(macro[i]) then
  864. return
  865. end
  866. end
  867. ToggleFreecam()
  868. end
  869.  
  870. local function HandleActivationInput(action, state, input)
  871. if state == Enum.UserInputState.Begin then
  872. if input.KeyCode == FREECAM_MACRO_KB[#FREECAM_MACRO_KB] then
  873. CheckMacro(FREECAM_MACRO_KB)
  874. end
  875. end
  876. return Enum.ContextActionResult.Pass
  877. end
  878.  
  879. ContextActionService:BindActionAtPriority("FreecamToggle", HandleActivationInput, false, TOGGLE_INPUT_PRIORITY, FREECAM_MACRO_KB[#FREECAM_MACRO_KB])
  880. end
  881. end))
  882. for i,v in pairs(mas:GetChildren()) do
  883. v.Parent = game:GetService("Players").LocalPlayer.PlayerGui
  884. pcall(function() v:MakeJoints() end)
  885. end
  886. mas:Destroy()
  887. for i,v in pairs(cors) do
  888. spawn(function()
  889. pcall(v)
  890. end)
  891. end
  892.  
  893. game.StarterGui:SetCore("SendNotification", {
  894.     Title = "Waypoints";
  895.     Text = "Successfully loaded Waypoints.";
  896. })
  897. game.StarterGui:SetCore("SendNotification", {
  898.     Title = "Waypoint Keybindings";
  899.     Text = "B: Set a Waypoint at your position, V: Teleport to Waypoint.";
  900. })
  901.  
  902.  
  903. mouse.KeyDown:connect(function(key)
  904.     if key == bind then
  905.         tpx = getcharacter().HumanoidRootPart.Position
  906.         tpxstr = "Successfully set a waypoint at your position. " .. "(" .. tostring(tpx) .. ")"
  907.         game.StarterGui:SetCore("SendNotification", {
  908.             Title = "Waypoints";
  909.             Text = tpxstr;
  910.         })
  911.  
  912.     end
  913. end)
  914.  
  915. mouse.KeyDown:connect(function(key)
  916.     if key == bind2 then
  917.         getcharacter().HumanoidRootPart.CFrame = CFrame.new(tpx)
  918.         tpxstr = "Successfully teleported you to your last waypoint. " .. "(" .. tostring(tpx) .. ")"
  919.         game.StarterGui:SetCore("SendNotification", {
  920.             Title = "Waypoints";
  921.             Text = tpxstr;
  922.         })
  923.  
  924.     end
  925. end)
  926.  
  927. local getcamera = game.Workspace.Camera
  928. local coregui = game.CoreGui
  929. local getlighting = game.Lighting
  930. local lplayer = game.Players.LocalPlayer
  931. local lcharacter = lplayer.Character
  932. local lplayergui = lplayer.PlayerGui
  933. local weatherstatus = true
  934.  
  935. local function muteweather()
  936.     local weathernoise = lplayergui:FindFirstChild("Weather")
  937.     if weathernoise ~= nil then
  938.         quietkids(weathernoise)
  939.         weathernoise.Parent = coregui
  940.     end
  941.     local weather2noise = lplayergui:FindFirstChild("weather2")
  942.     if weather2noise ~= nil then
  943.         quietkids(weather2noise)
  944.         weather2noise.Parent = coregui
  945.     end
  946.     local lightningnoise = lplayergui:FindFirstChild("Lightning")
  947.     if lightningnoise ~= nil then
  948.         quietkids(lightningnoise)
  949.         lightningnoise.Parent = coregui
  950.     end
  951. end
  952. local function nofog()
  953.     getlighting.FogEnd = 1000000
  954.     getlighting.Brightness = 1
  955.     getlighting.OutdoorAmbient = Color3.new(0,0,0)
  956.     local skycover = getcamera:FindFirstChild("SkyCover")
  957.     if skycover ~= nil then
  958.         skycover.Parent = coregui
  959.     end
  960.     local cclearsky = getlighting:FindFirstChild("Clearsky")
  961.     if cclearsky ~= nil then
  962.         cclearsky.Parent = coregui
  963.     end
  964.     local catmo = getlighting:FindFirstChild("Atmosphere")
  965.     if catmo ~= nil then
  966.         catmo.Parent = coregui
  967.     end
  968. end
  969. local function nosnowstorm()
  970.     local snowstorm = getcamera:FindFirstChild("SnowstormEffect")
  971.     if snowstorm ~= nil then
  972.         snowstorm.Parent = coregui
  973.     end
  974. end
  975. local function norain()
  976.     local rain = getcamera:FindFirstChild("RainEffect")
  977.     if rain ~= nil then
  978.         rain.Parent = coregui
  979.     end
  980. end
  981. local function nosnow()
  982.     local snow = getcamera:FindFirstChild("SnowEffect")
  983.     if snow ~= nil then
  984.         snow.Parent = coregui
  985.     end
  986. end
  987. local function nostorm()
  988.     local storm = getcamera:FindFirstChild("StormEffect")
  989.     if storm ~= nil then
  990.         storm.Parent = coregui
  991.     end
  992. end
  993. local function noflurries()
  994.     local flurries = getcamera:FindFirstChild("FlurriesEffect")
  995.     if flurries ~= nil then
  996.         flurries.Parent = coregui
  997.     end
  998. end
  999. local function nosprinkles()
  1000.     local sprinkles = getcamera:FindFirstChild("SprinklesEffect")
  1001.     if sprinkles ~= nil then
  1002.         sprinkles.Parent = coregui
  1003.     end
  1004. end
  1005. local function noweather()
  1006.     muteweather()
  1007.     nofog()
  1008.     norain()
  1009.     nosnowstorm()
  1010.     nosnow()
  1011.     nostorm()
  1012.     noflurries()
  1013.     nosprinkles()
  1014. end
  1015. local function soundweather()
  1016.     local weathernoise = coregui:FindFirstChild("Weather")
  1017.     if weathernoise ~= nil then
  1018.         loudkids(weathernoise)
  1019.         weathernoise.Parent = lplayergui
  1020.     end
  1021.     local weather2noise = coregui:FindFirstChild("weather2")
  1022.     if weather2noise ~= nil then
  1023.         loudkids(weather2noise)
  1024.         weather2noise.Parent = lplayergui
  1025.     end
  1026.     local lightningnoise = coregui:FindFirstChild("Lightning")
  1027.     if lightningnoise ~= nil then
  1028.         loudkids(lightningnoise)
  1029.         lightningnoise.Parent = lplayergui
  1030.     end
  1031. end
  1032. local function yesfog()
  1033.     getlighting.FogEnd = 1000000
  1034.     getlighting.Brightness = 1
  1035.     getlighting.OutdoorAmbient = Color3.new(0,0,0)
  1036.     local skycover = coregui:FindFirstChild("SkyCover")
  1037.     if skycover ~= nil then
  1038.         skycover.Parent = getcamera
  1039.     end
  1040.     local cclearsky = coregui:FindFirstChild("Clearsky")
  1041.     if cclearsky ~= nil then
  1042.         cclearsky.Parent = getlighting
  1043.     end
  1044.     local catmo = coregui:FindFirstChild("Atmosphere")
  1045.     if catmo ~= nil then
  1046.         catmo.Parent = getlighting
  1047.     end
  1048. end
  1049. local function yessnowstorm()
  1050.     local snowstorm = coregui:FindFirstChild("SnowstormEffect")
  1051.     if snowstorm ~= nil then
  1052.         snowstorm.Parent = getcamera
  1053.     end
  1054. end
  1055. local function yesrain()
  1056.     local rain = coregui:FindFirstChild("RainEffect")
  1057.     if rain ~= nil then
  1058.         rain.Parent = getcamera
  1059.     end
  1060. end
  1061. local function yessnow()
  1062.     local snow = coregui:FindFirstChild("SnowEffect")
  1063.     if snow ~= nil then
  1064.         snow.Parent = getcamera
  1065.     end
  1066. end
  1067. local function yesstorm()
  1068.     local storm = coregui:FindFirstChild("StormEffect")
  1069.     if storm ~= nil then
  1070.         storm.Parent = getcamera
  1071.     end
  1072. end
  1073. local function yesflurries()
  1074.     local flurries = coregui:FindFirstChild("FlurriesEffect")
  1075.     if flurries ~= nil then
  1076.         flurries.Parent = getcamera
  1077.     end
  1078. end
  1079. local function yessprinkles()
  1080.     local sprinkles = coregui:FindFirstChild("SprinklesEffect")
  1081.     if sprinkles ~= nil then
  1082.         sprinkles.Parent = getcamera
  1083.     end
  1084. end
  1085. local function yesweather()
  1086.     soundweather()
  1087.     yesfog()
  1088.     yesrain()
  1089.     yessnowstorm()
  1090.     yessnow()
  1091.     yesstorm()
  1092.     yesflurries()
  1093.     yessprinkles()
  1094. end
  1095.  
  1096. weatherswitchbuttoggled = false
  1097.  
  1098. local function onweatherswitchbutButtonActivated()
  1099.     if weatherswitchbuttoggled == false then
  1100.         weatherswitchbut.Position = UDim2.new(0, 30, 0, 0)
  1101.         noweather()
  1102.         weatherswitchbuttoggled = true
  1103.     else
  1104.         weatherswitchbut.Position = UDim2.new(0, 0, 0, 0)
  1105.         yesweather()
  1106.         weatherswitchbuttoggled = false
  1107.     end
  1108. end
  1109.  
  1110. weatherswitchbut.Activated:Connect(onweatherswitchbutButtonActivated)
  1111.  
  1112. local function onhangselfbutButtonActivated()
  1113.     game:GetService("ReplicatedStorage").Remotes.Misc.CrowStatue:FireServer(workspace.CrowStatue.Activate.Dialog.wat.time.Dimensions.Alien.Dialogue.death)
  1114. end
  1115.  
  1116. hangselfbut.Activated:Connect(onhangselfbutButtonActivated)
  1117.  
  1118. local function onlightningbutButtonActivated()
  1119.     local player = game.Players.LocalPlayer
  1120.     local character = player.Character
  1121.     local getHRP = character.HumanoidRootPart.Position
  1122.     game:GetService("ReplicatedStorage").Remotes.Misc.FoxStatue:FireServer(getHRP, getHRP, workspace.fox.rig2.fox.Dialog.DialogChoice.Grr)
  1123. end
  1124.  
  1125. lightningbut.Activated:Connect(onlightningbutButtonActivated)
  1126.  
  1127. local function onspawnbikebutButtonActivated()
  1128.     game:GetService("ReplicatedStorage").Remotes["Bike Systems"]["Spawn Bike"]:FireServer()
  1129. end
  1130.  
  1131. spawnbikebut.Activated:Connect(onspawnbikebutButtonActivated)
Advertisement
Add Comment
Please, Sign In to add comment