DrakerMaker

WIP Glitcher

Oct 22nd, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.03 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. script.Parent = Player.Character
  5.  
  6. --RemoteEvent for communicating
  7. local Event = Instance.new("RemoteEvent")
  8. Event.Name = "UserInput_Event"
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local function fakeEvent()
  12. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  13. t.connect = t.Connect
  14. return t
  15. end
  16.  
  17. --Creating fake input objects with fake variables
  18. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  19. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  20. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  21. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  22. end}
  23. --Merged 2 functions into one by checking amount of arguments
  24. CAS.UnbindAction = CAS.BindAction
  25.  
  26. --This function will trigger the events that have been :Connect()'ed
  27. local function te(self,ev,...)
  28. local t = m[ev]
  29. if t and t._fakeEvent and t.Function then
  30. t.Function(...)
  31. end
  32. end
  33. m.TrigEvent = te
  34. UIS.TrigEvent = te
  35.  
  36. Event.OnServerEvent:Connect(function(plr,io)
  37. if plr~=Player then return end
  38. if io.isMouse then
  39. m.Target = io.Target
  40. m.Hit = io.Hit
  41. else
  42. local b = io.UserInputState == Enum.UserInputState.Begin
  43. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  44. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  45. end
  46. for _,t in pairs(CAS.Actions) do
  47. for _,k in pairs(t.Keys) do
  48. if k==io.KeyCode then
  49. t.Function(t.Name,io.UserInputState,io)
  50. end
  51. end
  52. end
  53. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  54. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  55. end
  56. end)
  57. Event.Parent = NLS([==[
  58. local Player = game:GetService("Players").LocalPlayer
  59. local Event = script:WaitForChild("UserInput_Event")
  60.  
  61. local UIS = game:GetService("UserInputService")
  62. local input = function(io,a)
  63. if a then return end
  64. --Since InputObject is a client-side instance, we create and pass table instead
  65. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  66. end
  67. UIS.InputBegan:Connect(input)
  68. UIS.InputEnded:Connect(input)
  69.  
  70. local Mouse = Player:GetMouse()
  71. local h,t
  72. --Give the server mouse data 30 times every second, but only if the values changed
  73. --If player is not moving their mouse, client won't fire events
  74. while wait(1/30) do
  75. if h~=Mouse.Hit or t~=Mouse.Target then
  76. h,t=Mouse.Hit,Mouse.Target
  77. Event:FireServer({isMouse=true,Target=t,Hit=h})
  78. end
  79. end]==],Player.Character)
  80. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  81. end
  82. function wbtwe(Part0, Part1, C0)
  83. local weld = Instance.new("Weld", Part0)
  84. weld.Part0 = Part0
  85. weld.Part1 = Part1
  86. weld.C0 = Part1.CFrame:inverse() *Part1.CFrame *C0
  87. return weld
  88. end
  89. function rayCast(Position, Direction, Range, Ignore)
  90. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  91. end
  92. local Player_Size = 1
  93. float = 5
  94. wing = 5
  95. walk = 4
  96. mode = 1
  97. deb = false
  98. owner.Character.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  99. owner.Character.Humanoid.MaxHealth = 500
  100. owner.Character.Humanoid.Health = 500
  101. local left=Instance.new("Part", owner.Character)
  102. left.Material = "Neon"
  103. left.BrickColor = BrickColor.new("Institutional white")
  104. left.Size = Vector3.new(5, 1, 0)
  105. left.CanCollide = false
  106. left.Locked = true
  107. local right=Instance.new("Part", owner.Character)
  108. right.Material = "Neon"
  109. right.BrickColor = BrickColor.new("Institutional white")
  110. right.Size = Vector3.new(5, 1, 0)
  111. right.CanCollide = false
  112. right.Locked = true
  113. local pad=Instance.new("Part", owner.Character)
  114. pad.Material = "Neon"
  115. pad.BrickColor = BrickColor.new("Institutional white")
  116. pad.Size = Vector3.new(2, 2, 0)
  117. pad.CanCollide = false
  118. pad.Locked = true
  119. local sign = Instance.new("BillboardGui")
  120. sign.Adornee = owner.Character.Head
  121. sign.Parent = owner.Character.Head
  122. sign.StudsOffset=Vector3.new(0.5,1,0)
  123. sign.Size=UDim2.new(3,0,6,0)
  124. text=Instance.new("TextLabel")
  125. text.Text= "Natural"
  126. text.TextScaled = true
  127. text.TextColor3 = Color3.new(1, 1, 1)
  128. text.Size=UDim2.new(1,0,1,0)
  129. text.Position=UDim2.new(-0.125,0,-0.25,0)
  130. text.BackgroundTransparency = 1
  131. text.Font = "Arcade"
  132. text.Parent=sign
  133. local msgg = Instance.new("BillboardGui")
  134. msgg.Adornee = owner.Character.Head
  135. msgg.Parent = owner.Character.Head
  136. msgg.StudsOffset=Vector3.new(0.5,3.5,0)
  137. msgg.Size=UDim2.new(3,0,6,0)
  138. msggg=Instance.new("TextLabel")
  139. msggg.Text= ""
  140. msggg.TextScaled = true
  141. msggg.TextColor3 = Color3.new(1, 1, 1)
  142. msggg.Size=UDim2.new(1,0,1,0)
  143. msggg.Position=UDim2.new(-0.125,0,-0.25,0)
  144. msggg.BackgroundTransparency = 1
  145. msggg.Font = "Arcade"
  146. msggg.Parent=msgg
  147. local music = Instance.new("Sound", owner.Character.Head)
  148. music.SoundId = "rbxassetid://2521602906"
  149. music.Volume = 2
  150. music.Looped = true
  151. music:Play()
  152. local change1 = Instance.new("Sound", owner.Character.Head)
  153. change1.SoundId = "rbxassetid://1841310110"
  154. change1.Volume = 2
  155. leftwing = wbtwe(left, owner.Character.Torso, CFrame.new(3, -2, -1) *CFrame.Angles(0, 0, math.cos(wing) *0.500))
  156. rightwing = wbtwe(right, owner.Character.Torso, CFrame.new(-3, -2, -1) *CFrame.Angles(0, 0, math.cos(-wing) *0.500))
  157. padweld = wbtwe(pad, owner.Character.Torso, CFrame.new(-0.5, 0.5, -1) *CFrame.Angles(0, 0, 4))
  158. hrw = wbtwe(owner.Character.Torso, owner.Character.HumanoidRootPart, CFrame.new(0, math.sin(-float) *0.100 -5, 0))
  159. law = wbtwe(owner.Character["Left Arm"], owner.Character.Torso, CFrame.new(1.5, 0.3, 0.1) *CFrame.Angles(0, 25, 0.3))
  160. raw = wbtwe(owner.Character["Right Arm"], owner.Character.Torso, CFrame.new(-1.5, 0.3, 0) *CFrame.Angles(0, 0, -0.3))
  161. llw = wbtwe(owner.Character["Left Leg"], owner.Character.Torso, CFrame.new(0.2, 2.4, 0) *CFrame.Angles(0, 25, 0.3))
  162. rlw = wbtwe(owner.Character["Right Leg"], owner.Character.Torso, CFrame.new(-0.2, 2.4, 0) *CFrame.Angles(0, 0, -0.3))
  163. hw = wbtwe(owner.Character.Head, owner.Character.Torso, CFrame.new(0, -1.5, -0.6) *CFrame.Angles(0.6, -0.3, 0))
  164. anim = coroutine.wrap(function()
  165. while game:GetService("RunService").Stepped:Wait() do
  166. if owner.Character.HumanoidRootPart.Velocity.Magnitude < 1 then
  167. float = float +0.04
  168. if mode == 1 then
  169. wing = wing +0.04
  170. end
  171. if mode == 2 then
  172. wing = wing +0.069
  173. end
  174. if mode == 3 then
  175. wing = wing +0.075
  176. end
  177. if mode == 4 then
  178. wing = wing +0.095
  179. end
  180. if mode == 5 then
  181. wing = wing +0.095
  182. end
  183. if mode == 6 then
  184. wing = wing +0.095
  185. end
  186. if mode == 7 then
  187. wing = wing +0.095
  188. end
  189. if mode == 8 then
  190. wing = wing +0.095
  191. end
  192. if mode == 9 then
  193. wing = wing +0.095
  194. end
  195. if mode == 10 then
  196. wing = wing +0.150
  197. end
  198. if mode == 11 then
  199. wing = wing +0.300
  200. end
  201. if mode == 12 then
  202. wing = wing +0.190
  203. end
  204. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, math.sin(-float) *0.500 -5, 0), 0.1)
  205. leftwing.C0 = leftwing.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(3, -2, -1) *CFrame.Angles(math.cos(wing) *-0.500, math.cos(wing) *0.500, 0), 0.1)
  206. rightwing.C0 = rightwing.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-3, -2, -1) *CFrame.Angles(math.cos(wing) *-0.500, math.cos(-wing) *-0.500, 0), 0.1)
  207. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, 0.3, 0.1) *CFrame.Angles(0, 25, 0.3), 0.1)
  208. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, 0.3, 0) *CFrame.Angles(0, 0, -0.3), 0.1)
  209. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.2, 2, 0) *CFrame.Angles(0, 25, 0.3), 0.1)
  210. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.2, 2, 0) *CFrame.Angles(0, 0, -0.3), 0.1)
  211. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, -0.6) *CFrame.Angles(0.6, -0.3, 0), 0.1)
  212. end
  213. if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
  214. hitfloor, posfloor = rayCast(owner.Character.HumanoidRootPart.Position, CFrame.new(owner.Character.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4 * Player_Size, owner.Character)
  215. if hitfloor then
  216. if mode == 1 then
  217. wing = wing +0.04
  218. end
  219. if mode == 2 then
  220. wing = wing +0.069
  221. end
  222. if mode == 3 then
  223. wing = wing +0.075
  224. end
  225. if mode == 4 then
  226. wing = wing +0.095
  227. end
  228. if mode == 5 then
  229. wing = wing +0.095
  230. end
  231. if mode == 6 then
  232. wing = wing +0.095
  233. end
  234. if mode == 7 then
  235. wing = wing +0.120
  236. end
  237. if mode == 8 then
  238. wing = wing +0.095
  239. end
  240. if mode == 9 then
  241. wing = wing +0.095
  242. end
  243. if mode == 10 then
  244. wing = wing +0.150
  245. end
  246. if mode == 11 then
  247. wing = wing +0.300
  248. end
  249. if mode == 12 then
  250. wing = wing +0.300
  251. end
  252. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, -2, -1) *CFrame.Angles(0.5, 0, 0), 0.1)
  253. leftwing.C0 = leftwing.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(3, -2, -1) *CFrame.Angles(0, math.sin(wing) *0.7, 0), 0.1)
  254. rightwing.C0 = rightwing.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-3, -2, -1) *CFrame.Angles(0, math.sin(wing) *-0.7, 0), 0.1)
  255. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.4, 0.9) *CFrame.Angles(-0.5, 0, 0), 0.1)
  256. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, 0, 0) *CFrame.Angles(0.5, 25, -0.1), 0.1)
  257. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, 0, 0) *CFrame.Angles(0.5, 0, 0.1), 0.1)
  258. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.5, 1.7, 0) *CFrame.Angles(0.5, 25, 0.1), 0.1)
  259. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.5, 1.7, 0) *CFrame.Angles(0.5, 0, -0.1), 0.1)
  260. end
  261. end
  262. end
  263. end)anim()
  264. mouse.KeyDown:connect(function(key)
  265. if key=="f" then
  266. if deb == false then
  267. deb = true
  268. mode = mode +1
  269. for i = 1,20 do
  270. game:GetService("RunService").Stepped:wait()
  271. music.PlaybackSpeed = music.PlaybackSpeed -0.05
  272. end
  273. local ex = Instance.new("Part", workspace)
  274. ex.Material = "Neon"
  275. ex.Size = Vector3.new(5, 5, 5)
  276. ex.CanCollide = false
  277. ex.Shape = "Ball"
  278. ex.Anchored = true
  279. ex.CFrame = owner.Character.Head.CFrame
  280. change1:Play()
  281. if mode == 2 then
  282. music.SoundId = "rbxassetid://1539245059"
  283. music.PlaybackSpeed = 1
  284. text.Text = "Purity"
  285. owner.Character.Humanoid.WalkSpeed = 25
  286. text.TextColor3 = BrickColor.new("Pink").Color
  287. left.BrickColor = BrickColor.new("Plum")
  288. ex.BrickColor = left.BrickColor
  289. pad.BrickColor = BrickColor.new("Plum")
  290. right.BrickColor = BrickColor.new("Plum")
  291. end
  292. if mode == 3 then
  293. music.SoundId = "rbxassetid://2586147657"
  294. music.PlaybackSpeed = 1.25
  295. text.Text = "Solar"
  296. owner.Character.Humanoid.WalkSpeed = 35
  297. text.TextColor3 = BrickColor.new("Bright yellow").Color
  298. left.BrickColor = BrickColor.new("Bright yellow")
  299. ex.BrickColor = left.BrickColor
  300. pad.BrickColor = BrickColor.new("Bright yellow")
  301. right.BrickColor = BrickColor.new("Bright yellow")
  302. end
  303. if mode == 4 then
  304. music.SoundId = "rbxassetid://1604456093"
  305. music.PlaybackSpeed = 1
  306. text.Text = "Calamity"
  307. owner.Character.Humanoid.WalkSpeed = 35
  308. text.TextColor3 = BrickColor.new("Medium stone grey").Color
  309. left.BrickColor = BrickColor.new("Medium stone grey")
  310. ex.BrickColor = left.BrickColor
  311. pad.BrickColor = BrickColor.new("Medium stone grey")
  312. right.BrickColor = BrickColor.new("Medium stone grey")
  313. end
  314. if mode == 5 then
  315. music.SoundId = "rbxassetid://481104377"
  316. music.PlaybackSpeed = 1
  317. music.Volume = 2
  318. text.Text = "Chaos"
  319. owner.Character.Humanoid.WalkSpeed = 35
  320. text.TextColor3 = BrickColor.new("Bright blue").Color
  321. left.BrickColor = BrickColor.new("Bright blue")
  322. ex.BrickColor = left.BrickColor
  323. pad.BrickColor = BrickColor.new("Bright blue")
  324. right.BrickColor = BrickColor.new("Bright blue")
  325. end
  326. if mode == 6 then
  327. music.SoundId = "rbxassetid://919231299"
  328. music.PlaybackSpeed = 1
  329. music.Volume = 2
  330. text.Text = "Destruction"
  331. owner.Character.Humanoid.WalkSpeed = 35
  332. text.TextColor3 = BrickColor.new("Really red").Color
  333. left.BrickColor = BrickColor.new("Really red")
  334. ex.BrickColor = left.BrickColor
  335. pad.BrickColor = BrickColor.new("Really red")
  336. right.BrickColor = BrickColor.new("Really red")
  337. end
  338. if mode == 7 then
  339. music.SoundId = "rbxassetid://3261146521"
  340. music.PlaybackSpeed = 1
  341. music.Volume = 2
  342. text.Text = "LIGHT"
  343. owner.Character.Humanoid.WalkSpeed = 45
  344. text.TextColor3 = BrickColor.new("Institutional white").Color
  345. left.BrickColor = BrickColor.new("Institutional white")
  346. ex.BrickColor = left.BrickColor
  347. pad.BrickColor = BrickColor.new("Institutional white")
  348. right.BrickColor = BrickColor.new("Institutional white")
  349. end
  350. if mode == 8 then
  351. music.SoundId = "rbxassetid://2586147657"
  352. music.PlaybackSpeed = 1
  353. music.Volume = 2
  354. text.Text = "DESTINY"
  355. owner.Character.Humanoid.WalkSpeed = 45
  356. text.TextColor3 = BrickColor.new("Plum").Color
  357. left.BrickColor = BrickColor.new("Plum")
  358. ex.BrickColor = left.BrickColor
  359. pad.BrickColor = BrickColor.new("Plum")
  360. right.BrickColor = BrickColor.new("Plum")
  361. end
  362. if mode == 9 then
  363. music.SoundId = "rbxassetid://1564523997"
  364. music.PlaybackSpeed = 1
  365. music.Volume = 2
  366. text.Text = "Solitude"
  367. owner.Character.Humanoid.WalkSpeed = 25
  368. text.TextColor3 = BrickColor.new("Really black").Color
  369. left.BrickColor = BrickColor.new("Really black")
  370. ex.BrickColor = left.BrickColor
  371. pad.BrickColor = BrickColor.new("Really black")
  372. right.BrickColor = BrickColor.new("Really black")
  373. end
  374. if mode == 10 then
  375. music.SoundId = "rbxassetid://614032233"
  376. music.PlaybackSpeed = 1
  377. text.Text = "MAYHEM"
  378. owner.Character.Humanoid.WalkSpeed = 45
  379. text.TextColor3 = BrickColor.new("Really red").Color
  380. left.BrickColor = BrickColor.new("Really red")
  381. ex.BrickColor = left.BrickColor
  382. pad.BrickColor = BrickColor.new("Really red")
  383. right.BrickColor = BrickColor.new("Really red")
  384. end
  385. if mode == 11 then
  386. music.SoundId = "rbxassetid://183142252"
  387. music.PlaybackSpeed = 1
  388. music.Volume = 5
  389. text.Text = "BIG BLACK"
  390. owner.Character.Humanoid.WalkSpeed = 45
  391. text.TextColor3 = BrickColor.new("Really black").Color
  392. left.BrickColor = BrickColor.new("Really black")
  393. ex.BrickColor = left.BrickColor
  394. pad.BrickColor = BrickColor.new("Really black")
  395. right.BrickColor = BrickColor.new("Really black")
  396. end
  397. if mode == 12 then
  398. music.SoundId = "rbxassetid://672082621"
  399. music.PlaybackSpeed = 1
  400. music.Volume = 2
  401. text.Text = "Division"
  402. owner.Character.Humanoid.WalkSpeed = 45
  403. text.TextColor3 = BrickColor.new("Persimmon").Color
  404. left.BrickColor = BrickColor.new("Persimmon")
  405. ex.BrickColor = left.BrickColor
  406. pad.BrickColor = BrickColor.new("Persimmon")
  407. right.BrickColor = BrickColor.new("Persimmon")
  408. end
  409. if mode == 13 then
  410. music.SoundId = "rbxassetid://2521602906"
  411. music.PlaybackSpeed = 1
  412. music.Volume = 2
  413. text.Text = "Natural"
  414. owner.Character.Humanoid.WalkSpeed = 45
  415. text.TextColor3 = Color3.new(1, 1, 1)
  416. left.BrickColor = BrickColor.new("Institutional white")
  417. ex.BrickColor = left.BrickColor
  418. pad.BrickColor = BrickColor.new("Institutional white")
  419. right.BrickColor = BrickColor.new("Institutional white")
  420. owner.Character.Humanoid.WalkSpeed = 16
  421. mode = 1
  422. end
  423. deb = false
  424. for i = 1,25 do
  425. game:GetService("RunService").Stepped:wait()
  426. ex.Size = ex.Size +Vector3.new(1, 1, 1)
  427. ex.Transparency = ex.Transparency +0.05
  428. end
  429. ex:Destroy()
  430. end
  431. end
  432. end)
Add Comment
Please, Sign In to add comment