DrakerMaker

Switchsuit

Jan 4th, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.94 KB | None | 0 0
  1. warn([[
  2. waddu want frum meee???11??1?
  3. ]])
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. script.Parent = Player.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent and t.Function then
  33. t.Function(...)
  34. end
  35. end
  36. m.TrigEvent = te
  37. UIS.TrigEvent = te
  38.  
  39. Event.OnServerEvent:Connect(function(plr,io)
  40. if plr~=Player then return end
  41. if io.isMouse then
  42. m.Target = io.Target
  43. m.Hit = io.Hit
  44. else
  45. local b = io.UserInputState == Enum.UserInputState.Begin
  46. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  47. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  48. end
  49. for _,t in pairs(CAS.Actions) do
  50. for _,k in pairs(t.Keys) do
  51. if k==io.KeyCode then
  52. t.Function(t.Name,io.UserInputState,io)
  53. end
  54. end
  55. end
  56. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  58. end
  59. end)
  60. Event.Parent = NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62. local Event = script:WaitForChild("UserInput_Event")
  63.  
  64. local UIS = game:GetService("UserInputService")
  65. local input = function(io,a)
  66. if a then return end
  67. --Since InputObject is a client-side instance, we create and pass table instead
  68. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  69. end
  70. UIS.InputBegan:Connect(input)
  71. UIS.InputEnded:Connect(input)
  72.  
  73. local Mouse = Player:GetMouse()
  74. local h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  84. end
  85. function rayCast(Position, Direction, Range, Ignore)
  86. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  87. end
  88. local Player_Size = 1
  89. function wbtwe(first,second,c0)
  90. local weld = Instance.new("Weld", first)
  91. weld.Part0 = first
  92. weld.Part1 = second
  93. weld.C0 = second.CFrame:inverse() *second.CFrame *c0
  94. return weld
  95. end
  96.  
  97. local mas = Instance.new("Model", owner.Character)
  98. -- DECLARING VARIABLES
  99.  
  100. local Base = Instance.new("Model")
  101. local Part = Instance.new("Part")
  102. local WeldConstraint = Instance.new("WeldConstraint")
  103. local Wedge = Instance.new("WedgePart")
  104. local WeldConstraint_1 = Instance.new("WeldConstraint")
  105. local Wedge_1 = Instance.new("WedgePart")
  106. local WeldConstraint_2 = Instance.new("WeldConstraint")
  107. local Base_1 = Instance.new("Part")
  108. local Wedge_2 = Instance.new("WedgePart")
  109. local WeldConstraint_3 = Instance.new("WeldConstraint")
  110. local Wedge_3 = Instance.new("WedgePart")
  111. local WeldConstraint_4 = Instance.new("WeldConstraint")
  112. local Wedge_4 = Instance.new("WedgePart")
  113. local WeldConstraint_5 = Instance.new("WeldConstraint")
  114. local Wedge_5 = Instance.new("WedgePart")
  115. local WeldConstraint_6 = Instance.new("WeldConstraint")
  116. local Wedge_6 = Instance.new("WedgePart")
  117. local WeldConstraint_7 = Instance.new("WeldConstraint")
  118. local Wedge_7 = Instance.new("WedgePart")
  119. local WeldConstraint_8 = Instance.new("WeldConstraint")
  120. local Wedge_8 = Instance.new("WedgePart")
  121. local WeldConstraint_9 = Instance.new("WeldConstraint")
  122. local Wedge_9 = Instance.new("WedgePart")
  123. local WeldConstraint_10 = Instance.new("WeldConstraint")
  124. local Wedge_10 = Instance.new("WedgePart")
  125. local WeldConstraint_11 = Instance.new("WeldConstraint")
  126. local Wedge_11 = Instance.new("WedgePart")
  127. local WeldConstraint_12 = Instance.new("WeldConstraint")
  128. local Wedge_12 = Instance.new("WedgePart")
  129. local WeldConstraint_13 = Instance.new("WeldConstraint")
  130. local Wedge_13 = Instance.new("WedgePart")
  131. local WeldConstraint_14 = Instance.new("WeldConstraint")
  132. local Wedge_14 = Instance.new("WedgePart")
  133. local WeldConstraint_15 = Instance.new("WeldConstraint")
  134. local Wedge_15 = Instance.new("WedgePart")
  135. local WeldConstraint_16 = Instance.new("WeldConstraint")
  136. local Wedge_16 = Instance.new("WedgePart")
  137. local WeldConstraint_17 = Instance.new("WeldConstraint")
  138. local Wedge_17 = Instance.new("WedgePart")
  139. local WeldConstraint_18 = Instance.new("WeldConstraint")
  140. local Wedge_18 = Instance.new("WedgePart")
  141. local WeldConstraint_19 = Instance.new("WeldConstraint")
  142. local Wedge_19 = Instance.new("WedgePart")
  143. local WeldConstraint_20 = Instance.new("WeldConstraint")
  144. local Wedge_20 = Instance.new("WedgePart")
  145. local WeldConstraint_21 = Instance.new("WeldConstraint")
  146. local Wedge_21 = Instance.new("WedgePart")
  147. local WeldConstraint_22 = Instance.new("WeldConstraint")
  148.  
  149. -- SETTING PROPERTIES
  150.  
  151. Base.Name = "Base"
  152. Base.Parent = mas
  153.  
  154. Part.BottomSurface = Enum.SurfaceType.Smooth
  155. Part.CFrame = CFrame.new(36.542,47.082,-170.268,0.707,-0.707,0,0.707,0.707,0,0,0,1)
  156. Part.CanCollide = false
  157. Part.Color = Color3.new(0.294,0.592,0.294)
  158. Part.Material = Enum.Material.Neon
  159. Part.Size = Vector3.new(1,1,1.2)
  160. Part.TopSurface = Enum.SurfaceType.Smooth
  161. Part.Parent = Base
  162.  
  163. WeldConstraint.Part0 = Part
  164. WeldConstraint.Part1 = Base_1
  165. WeldConstraint.Parent = Part
  166.  
  167. Wedge.BottomSurface = Enum.SurfaceType.Smooth
  168. Wedge.CFrame = CFrame.new(37.705,47.206,-170.261,0,0,-1,0,-1,0,-1,0,0)
  169. Wedge.CanCollide = false
  170. Wedge.Color = Color3.new(0.067,0.067,0.067)
  171. Wedge.Material = Enum.Material.Slate
  172. Wedge.Size = Vector3.new(1.1,0.26,0.4)
  173. Wedge.Parent = Base
  174.  
  175. WeldConstraint_1.Part0 = Wedge
  176. WeldConstraint_1.Part1 = Base_1
  177. WeldConstraint_1.Parent = Wedge
  178.  
  179. Wedge_1.BottomSurface = Enum.SurfaceType.Smooth
  180. Wedge_1.CFrame = CFrame.new(37.704,47.037,-170.26,0,0,-1,0,-1,0,-1,0,0)
  181. Wedge_1.CanCollide = false
  182. Wedge_1.Color = Color3.new(0.067,0.067,0.067)
  183. Wedge_1.Material = Enum.Material.Slate
  184. Wedge_1.Size = Vector3.new(1.1,0.26,0.4)
  185. Wedge_1.Parent = Base
  186.  
  187. WeldConstraint_2.Part0 = Wedge_1
  188. WeldConstraint_2.Part1 = Base_1
  189. WeldConstraint_2.Parent = Wedge_1
  190.  
  191. Base_1.BottomSurface = Enum.SurfaceType.Smooth
  192. Base_1.CFrame = CFrame.new(36.579,47.063,-170.261,1,0,0,0,1,0,0,0,1)
  193. Base_1.CanCollide = false
  194. Base_1.Color = Color3.new(0.067,0.067,0.067)
  195. Base_1.Material = Enum.Material.Slate
  196. Base_1.Size = Vector3.new(2,2.1,1.1)
  197. Base_1.TopSurface = Enum.SurfaceType.Smooth
  198. Base_1.Name = "Base"
  199. Base_1.Parent = Base
  200.  
  201. Wedge_2.BottomSurface = Enum.SurfaceType.Smooth
  202. Wedge_2.CFrame = CFrame.new(37.705,46.901,-170.26,0,0,-1,0,-1,0,-1,0,0)
  203. Wedge_2.CanCollide = false
  204. Wedge_2.Color = Color3.new(0.067,0.067,0.067)
  205. Wedge_2.Material = Enum.Material.Slate
  206. Wedge_2.Size = Vector3.new(1.1,0.26,0.4)
  207. Wedge_2.Parent = Base
  208.  
  209. WeldConstraint_3.Part0 = Wedge_2
  210. WeldConstraint_3.Part1 = Base_1
  211. WeldConstraint_3.Parent = Wedge_2
  212.  
  213. Wedge_3.BottomSurface = Enum.SurfaceType.Smooth
  214. Wedge_3.CFrame = CFrame.new(37.704,46.747,-170.26,0,0,-1,0,-1,0,-1,0,0)
  215. Wedge_3.CanCollide = false
  216. Wedge_3.Color = Color3.new(0.067,0.067,0.067)
  217. Wedge_3.Material = Enum.Material.Slate
  218. Wedge_3.Size = Vector3.new(1.1,0.26,0.4)
  219. Wedge_3.Parent = Base
  220.  
  221. WeldConstraint_4.Part0 = Wedge_3
  222. WeldConstraint_4.Part1 = Base_1
  223. WeldConstraint_4.Parent = Wedge_3
  224.  
  225. Wedge_4.BottomSurface = Enum.SurfaceType.Smooth
  226. Wedge_4.CFrame = CFrame.new(37.704,46.441,-170.259,0,0,-1,0,-1,0,-1,0,0)
  227. Wedge_4.CanCollide = false
  228. Wedge_4.Color = Color3.new(0.067,0.067,0.067)
  229. Wedge_4.Material = Enum.Material.Slate
  230. Wedge_4.Size = Vector3.new(1.1,0.26,0.4)
  231. Wedge_4.Parent = Base
  232.  
  233. WeldConstraint_5.Part0 = Wedge_4
  234. WeldConstraint_5.Part1 = Base_1
  235. WeldConstraint_5.Parent = Wedge_4
  236.  
  237. Wedge_5.BottomSurface = Enum.SurfaceType.Smooth
  238. Wedge_5.CFrame = CFrame.new(37.705,46.578,-170.261,0,0,-1,0,-1,0,-1,0,0)
  239. Wedge_5.CanCollide = false
  240. Wedge_5.Color = Color3.new(0.067,0.067,0.067)
  241. Wedge_5.Material = Enum.Material.Slate
  242. Wedge_5.Size = Vector3.new(1.1,0.26,0.4)
  243. Wedge_5.Parent = Base
  244.  
  245. WeldConstraint_6.Part0 = Wedge_5
  246. WeldConstraint_6.Part1 = Base_1
  247. WeldConstraint_6.Parent = Wedge_5
  248.  
  249. Wedge_6.BottomSurface = Enum.SurfaceType.Smooth
  250. Wedge_6.CFrame = CFrame.new(37.704,46.2,-170.259,0,0,-1,0,-1,0,-1,0,0)
  251. Wedge_6.CanCollide = false
  252. Wedge_6.Color = Color3.new(0.067,0.067,0.067)
  253. Wedge_6.Material = Enum.Material.Slate
  254. Wedge_6.Size = Vector3.new(1.1,0.26,0.4)
  255. Wedge_6.Parent = Base
  256.  
  257. WeldConstraint_7.Part0 = Wedge_6
  258. WeldConstraint_7.Part1 = Base_1
  259. WeldConstraint_7.Parent = Wedge_6
  260.  
  261. Wedge_7.BottomSurface = Enum.SurfaceType.Smooth
  262. Wedge_7.CFrame = CFrame.new(37.704,47.894,-170.261,0,0,-1,0,-1,0,-1,0,0)
  263. Wedge_7.CanCollide = false
  264. Wedge_7.Color = Color3.new(0.067,0.067,0.067)
  265. Wedge_7.Material = Enum.Material.Slate
  266. Wedge_7.Size = Vector3.new(1.1,0.26,0.4)
  267. Wedge_7.Parent = Base
  268.  
  269. WeldConstraint_8.Part0 = Wedge_7
  270. WeldConstraint_8.Part1 = Base_1
  271. WeldConstraint_8.Parent = Wedge_7
  272.  
  273. Wedge_8.BottomSurface = Enum.SurfaceType.Smooth
  274. Wedge_8.CFrame = CFrame.new(37.704,47.348,-170.259,0,0,-1,0,-1,0,-1,0,0)
  275. Wedge_8.CanCollide = false
  276. Wedge_8.Color = Color3.new(0.067,0.067,0.067)
  277. Wedge_8.Material = Enum.Material.Slate
  278. Wedge_8.Size = Vector3.new(1.1,0.26,0.4)
  279. Wedge_8.Parent = Base
  280.  
  281. WeldConstraint_9.Part0 = Wedge_8
  282. WeldConstraint_9.Part1 = Base_1
  283. WeldConstraint_9.Parent = Wedge_8
  284.  
  285. Wedge_9.BottomSurface = Enum.SurfaceType.Smooth
  286. Wedge_9.CFrame = CFrame.new(37.704,47.589,-170.259,0,0,-1,0,-1,0,-1,0,0)
  287. Wedge_9.CanCollide = false
  288. Wedge_9.Color = Color3.new(0.067,0.067,0.067)
  289. Wedge_9.Material = Enum.Material.Slate
  290. Wedge_9.Size = Vector3.new(1.1,0.26,0.4)
  291. Wedge_9.Parent = Base
  292.  
  293. WeldConstraint_10.Part0 = Wedge_9
  294. WeldConstraint_10.Part1 = Base_1
  295. WeldConstraint_10.Parent = Wedge_9
  296.  
  297. Wedge_10.BottomSurface = Enum.SurfaceType.Smooth
  298. Wedge_10.CFrame = CFrame.new(37.704,47.726,-170.26,0,0,-1,0,-1,0,-1,0,0)
  299. Wedge_10.CanCollide = false
  300. Wedge_10.Color = Color3.new(0.067,0.067,0.067)
  301. Wedge_10.Material = Enum.Material.Slate
  302. Wedge_10.Size = Vector3.new(1.1,0.26,0.4)
  303. Wedge_10.Parent = Base
  304.  
  305. WeldConstraint_11.Part0 = Wedge_10
  306. WeldConstraint_11.Part1 = Base_1
  307. WeldConstraint_11.Parent = Wedge_10
  308.  
  309. Wedge_11.BottomSurface = Enum.SurfaceType.Smooth
  310. Wedge_11.CFrame = CFrame.new(35.434,47.206,-170.26,0,0,1,0,1,0,-1,0,0)
  311. Wedge_11.CanCollide = false
  312. Wedge_11.Color = Color3.new(0.067,0.067,0.067)
  313. Wedge_11.Material = Enum.Material.Slate
  314. Wedge_11.Size = Vector3.new(1.1,0.26,0.4)
  315. Wedge_11.Parent = Base
  316.  
  317. WeldConstraint_12.Part0 = Wedge_11
  318. WeldConstraint_12.Part1 = Base_1
  319. WeldConstraint_12.Parent = Wedge_11
  320.  
  321. Wedge_12.BottomSurface = Enum.SurfaceType.Smooth
  322. Wedge_12.CFrame = CFrame.new(35.434,46.747,-170.26,0,0,1,0,1,0,-1,0,0)
  323. Wedge_12.CanCollide = false
  324. Wedge_12.Color = Color3.new(0.067,0.067,0.067)
  325. Wedge_12.Material = Enum.Material.Slate
  326. Wedge_12.Size = Vector3.new(1.1,0.26,0.4)
  327. Wedge_12.Parent = Base
  328.  
  329. WeldConstraint_13.Part0 = Wedge_12
  330. WeldConstraint_13.Part1 = Base_1
  331. WeldConstraint_13.Parent = Wedge_12
  332.  
  333. Wedge_13.BottomSurface = Enum.SurfaceType.Smooth
  334. Wedge_13.CFrame = CFrame.new(35.434,47.725,-170.26,0,0,1,0,1,0,-1,0,0)
  335. Wedge_13.CanCollide = false
  336. Wedge_13.Color = Color3.new(0.067,0.067,0.067)
  337. Wedge_13.Material = Enum.Material.Slate
  338. Wedge_13.Size = Vector3.new(1.1,0.26,0.4)
  339. Wedge_13.Parent = Base
  340.  
  341. WeldConstraint_14.Part0 = Wedge_13
  342. WeldConstraint_14.Part1 = Base_1
  343. WeldConstraint_14.Parent = Wedge_13
  344.  
  345. Wedge_14.BottomSurface = Enum.SurfaceType.Smooth
  346. Wedge_14.CFrame = CFrame.new(35.434,46.901,-170.259,0,0,1,0,1,0,-1,0,0)
  347. Wedge_14.CanCollide = false
  348. Wedge_14.Color = Color3.new(0.067,0.067,0.067)
  349. Wedge_14.Material = Enum.Material.Slate
  350. Wedge_14.Size = Vector3.new(1.1,0.26,0.4)
  351. Wedge_14.Parent = Base
  352.  
  353. WeldConstraint_15.Part0 = Wedge_14
  354. WeldConstraint_15.Part1 = Base_1
  355. WeldConstraint_15.Parent = Wedge_14
  356.  
  357. Wedge_15.BottomSurface = Enum.SurfaceType.Smooth
  358. Wedge_15.CFrame = CFrame.new(35.434,47.589,-170.259,0,0,1,0,1,0,-1,0,0)
  359. Wedge_15.CanCollide = false
  360. Wedge_15.Color = Color3.new(0.067,0.067,0.067)
  361. Wedge_15.Material = Enum.Material.Slate
  362. Wedge_15.Size = Vector3.new(1.1,0.26,0.4)
  363. Wedge_15.Parent = Base
  364.  
  365. WeldConstraint_16.Part0 = Wedge_15
  366. WeldConstraint_16.Part1 = Base_1
  367. WeldConstraint_16.Parent = Wedge_15
  368.  
  369. Wedge_16.BottomSurface = Enum.SurfaceType.Smooth
  370. Wedge_16.CFrame = CFrame.new(35.434,46.578,-170.26,0,0,1,0,1,0,-1,0,0)
  371. Wedge_16.CanCollide = false
  372. Wedge_16.Color = Color3.new(0.067,0.067,0.067)
  373. Wedge_16.Material = Enum.Material.Slate
  374. Wedge_16.Size = Vector3.new(1.1,0.26,0.4)
  375. Wedge_16.Parent = Base
  376.  
  377. WeldConstraint_17.Part0 = Wedge_16
  378. WeldConstraint_17.Part1 = Base_1
  379. WeldConstraint_17.Parent = Wedge_16
  380.  
  381. Wedge_17.BottomSurface = Enum.SurfaceType.Smooth
  382. Wedge_17.CFrame = CFrame.new(35.435,47.348,-170.26,0,0,1,0,1,0,-1,0,0)
  383. Wedge_17.CanCollide = false
  384. Wedge_17.Color = Color3.new(0.067,0.067,0.067)
  385. Wedge_17.Material = Enum.Material.Slate
  386. Wedge_17.Size = Vector3.new(1.1,0.26,0.4)
  387. Wedge_17.Parent = Base
  388.  
  389. WeldConstraint_18.Part0 = Wedge_17
  390. WeldConstraint_18.Part1 = Base_1
  391. WeldConstraint_18.Parent = Wedge_17
  392.  
  393. Wedge_18.BottomSurface = Enum.SurfaceType.Smooth
  394. Wedge_18.CFrame = CFrame.new(35.434,46.2,-170.259,0,0,1,0,1,0,-1,0,0)
  395. Wedge_18.CanCollide = false
  396. Wedge_18.Color = Color3.new(0.067,0.067,0.067)
  397. Wedge_18.Material = Enum.Material.Slate
  398. Wedge_18.Size = Vector3.new(1.1,0.26,0.4)
  399. Wedge_18.Parent = Base
  400.  
  401. WeldConstraint_19.Part0 = Wedge_18
  402. WeldConstraint_19.Part1 = Base_1
  403. WeldConstraint_19.Parent = Wedge_18
  404.  
  405. Wedge_19.BottomSurface = Enum.SurfaceType.Smooth
  406. Wedge_19.CFrame = CFrame.new(35.434,47.037,-170.26,0,0,1,0,1,0,-1,0,0)
  407. Wedge_19.CanCollide = false
  408. Wedge_19.Color = Color3.new(0.067,0.067,0.067)
  409. Wedge_19.Material = Enum.Material.Slate
  410. Wedge_19.Size = Vector3.new(1.1,0.26,0.4)
  411. Wedge_19.Parent = Base
  412.  
  413. WeldConstraint_20.Part0 = Wedge_19
  414. WeldConstraint_20.Part1 = Base_1
  415. WeldConstraint_20.Parent = Wedge_19
  416.  
  417. Wedge_20.BottomSurface = Enum.SurfaceType.Smooth
  418. Wedge_20.CFrame = CFrame.new(35.435,46.442,-170.259,0,0,1,0,1,0,-1,0,0)
  419. Wedge_20.CanCollide = false
  420. Wedge_20.Color = Color3.new(0.067,0.067,0.067)
  421. Wedge_20.Material = Enum.Material.Slate
  422. Wedge_20.Size = Vector3.new(1.1,0.26,0.4)
  423. Wedge_20.Parent = Base
  424.  
  425. WeldConstraint_21.Part0 = Wedge_20
  426. WeldConstraint_21.Part1 = Base_1
  427. WeldConstraint_21.Parent = Wedge_20
  428.  
  429. Wedge_21.BottomSurface = Enum.SurfaceType.Smooth
  430. Wedge_21.CFrame = CFrame.new(35.434,47.894,-170.26,0,0,1,0,1,0,-1,0,0)
  431. Wedge_21.CanCollide = false
  432. Wedge_21.Color = Color3.new(0.067,0.067,0.067)
  433. Wedge_21.Material = Enum.Material.Slate
  434. Wedge_21.Size = Vector3.new(1.1,0.26,0.4)
  435. Wedge_21.Parent = Base
  436.  
  437. WeldConstraint_22.Part0 = Wedge_21
  438. WeldConstraint_22.Part1 = Base_1
  439. WeldConstraint_22.Parent = Wedge_21
  440.  
  441.  
  442.  
  443. wbtwe(Base_1, owner.Character["Torso"], CFrame.new(0, 0, 0))
  444. local song = Instance.new("Sound", owner.Character.Head)
  445. song.SoundId = "rbxassetid://149820574"
  446. song.Volume = 2
  447. song.Looped = true
  448. song:Play()
  449. idle = 0.1
  450. walk = 0.5
  451. mode = 1
  452. float = 1
  453. deb = false
  454. mouse.KeyDown:connect(function(k)
  455. if k == "q" then
  456. if deb == false then
  457. if mode == 1 then
  458. deb = true
  459. mode = mode +1
  460. local sound = Instance.new("Sound", owner.Character.Head)
  461. sound.SoundId = "rbxassetid://138186576"
  462. sound.Volume = 4
  463. sound:Play()
  464. song:Stop()
  465. song.SoundId = "rbxassetid://306431437"
  466. song:Play()
  467. wait(sound.TimeLength)
  468. Part.BrickColor = BrickColor.new("Really red")
  469. local exsound = Instance.new("Sound", owner.Character.Head)
  470. exsound.SoundId = "rbxassetid://539294959"
  471. exsound.Volume = 4
  472. exsound:Play()
  473. end
  474. if mode == 2 then
  475. deb = true
  476. mode = mode +1
  477. song:Stop()
  478. song.SoundId = "rbxassetid://436405140"
  479. song:Play()
  480. deb = false
  481. end
  482. Part.BrickColor = BrickColor.new("Bright yellow")
  483. if mode == 3 then
  484. deb = true
  485. mode = mode +1
  486. song:Stop()
  487. song.SoundId = "rbxassetid://1470848774"
  488. song:Play()
  489. Part.BrickColor = BrickColor.new("Royal purple")
  490. deb = false
  491. end
  492. end
  493. end
  494. end)
Add Comment
Please, Sign In to add comment