Advertisement
DrakerMaker

Nexus WIP

Nov 20th, 2019 (edited)
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.05 KB | None | 0 0
  1. warn([[
  2. A whole selection of powers packed in one.
  3.  
  4. By DrakerMaker
  5.  
  6. WIP Product
  7. ]])
  8. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  9. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  10. do
  11. script.Parent = Player.Character
  12.  
  13. --RemoteEvent for communicating
  14. local Event = Instance.new("RemoteEvent")
  15. Event.Name = "UserInput_Event"
  16.  
  17. --Fake event to make stuff like Mouse.KeyDown work
  18. local function fakeEvent()
  19. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  20. t.connect = t.Connect
  21. return t
  22. end
  23.  
  24. --Creating fake input objects with fake variables
  25. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  26. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  27. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  28. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  29. end}
  30. --Merged 2 functions into one by checking amount of arguments
  31. CAS.UnbindAction = CAS.BindAction
  32.  
  33. --This function will trigger the events that have been :Connect()'ed
  34. local function te(self,ev,...)
  35. local t = m[ev]
  36. if t and t._fakeEvent and t.Function then
  37. t.Function(...)
  38. end
  39. end
  40. m.TrigEvent = te
  41. UIS.TrigEvent = te
  42.  
  43. Event.OnServerEvent:Connect(function(plr,io)
  44. if plr~=Player then return end
  45. if io.isMouse then
  46. m.Target = io.Target
  47. m.Hit = io.Hit
  48. else
  49. local b = io.UserInputState == Enum.UserInputState.Begin
  50. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  51. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67.  
  68. local UIS = game:GetService("UserInputService")
  69. local input = function(io,a)
  70. if a then return end
  71. --Since InputObject is a client-side instance, we create and pass table instead
  72. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76.  
  77. local Mouse = Player:GetMouse()
  78. local h,t
  79. --Give the server mouse data 30 times every second, but only if the values changed
  80. --If player is not moving their mouse, client won't fire events
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. h,t=Mouse.Hit,Mouse.Target
  84. Event:FireServer({isMouse=true,Target=t,Hit=h})
  85. end
  86. end]==],Player.Character)
  87. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  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. function wbtwe(first,second,c0)
  94. local weld = Instance.new("Weld", first)
  95. weld.Part0 = first
  96. weld.Part1 = second
  97. weld.C0 = second.CFrame:inverse() *second.CFrame *c0
  98. return weld
  99. end
  100. owner.Character["Left Arm"].Transparency = 1
  101. local arm = Instance.new("Part", owner.Character)
  102. arm.Name = "Arm"
  103. arm.CanCollide = false
  104. arm.Size = Vector3.new(1, 2, 1)
  105. arm.CFrame= owner.Character["Left Arm"].CFrame
  106. arm.TopSurface = "Smooth"
  107. arm.BottomSurface = "Smooth"
  108. arm.Material = "SmoothPlastic"
  109. arm.Locked = true
  110. wbtwe(arm, owner.Character["Left Arm"], CFrame.new(0, 0, 0))
  111. local band = Instance.new("Part", owner.Character)
  112. band.Name = "Band"
  113. band.CanCollide = false
  114. band.Size = Vector3.new(1.12, 0.18, 1.16)
  115. band.BrickColor = BrickColor.new("Institutional white")
  116. band.CFrame = arm.CFrame
  117. band.TopSurface = "Smooth"
  118. band.BottomSurface = "Smooth"
  119. band.Material = "Neon"
  120. band.Locked = true
  121. wbtwe(band, arm, CFrame.new(0, 0.6, 0))
  122. local song = Instance.new("Sound", owner.Character.Head)
  123. song.SoundId = "rbxassetid://1117396305"
  124. song.Volume = 2
  125. song.Looped = true
  126. song:Play()
  127. idle = 0.1
  128. walk = 0.5
  129. mode = 1
  130. float = 1
  131. deb = false
  132. local sign = Instance.new("BillboardGui", owner.Character.Head)
  133. sign.Parent = owner.Character.Head
  134. sign.StudsOffset=Vector3.new(0.5,1,0)
  135. sign.Size=UDim2.new(3,0,6,0)
  136. text=Instance.new("TextLabel")
  137. text.Text= "Even"
  138. text.TextScaled = true
  139. text.TextColor3 = Color3.new(1, 1, 1)
  140. text.Size=UDim2.new(1,0,1,0)
  141. text.Position=UDim2.new(-0.125,0,-0.25,0)
  142. text.BackgroundTransparency = 1
  143. text.TextStrokeTransparency = 0
  144. text.Font = "SourceSansBold"
  145. text.Parent=sign
  146. hrw = wbtwe(owner.Character.Torso, owner.Character.HumanoidRootPart, CFrame.new(0, 0, 0))
  147. law = wbtwe(owner.Character["Left Arm"], owner.Character.Torso, CFrame.new(1.5, 0.3, 0.1) *CFrame.Angles(0, 25, 0.2))
  148. raw = wbtwe(owner.Character["Right Arm"], owner.Character.Torso, CFrame.new(-1.5, 0.3, 0) *CFrame.Angles(0, 0, -0.2))
  149. llw = wbtwe(owner.Character["Left Leg"], owner.Character.HumanoidRootPart, CFrame.new(0.2, 2.2, 0) *CFrame.Angles(0, 25, 0.2))
  150. rlw = wbtwe(owner.Character["Right Leg"], owner.Character.HumanoidRootPart, CFrame.new(-0.2, 2.2, 0) *CFrame.Angles(0, 0, -0.2))
  151. hw = wbtwe(owner.Character.Head, owner.Character.Torso, CFrame.new(0, -1.5, 0) *CFrame.Angles(0, -0.3, 0))
  152. anim = coroutine.wrap(function()
  153. while game:GetService("RunService").Stepped:wait() do
  154. if owner.Character.HumanoidRootPart.Velocity.Magnitude < 1 then
  155. if text.Text == "Even" then
  156. llw.Part1 = owner.Character["HumanoidRootPart"]
  157. rlw.Part1 = owner.Character["HumanoidRootPart"]
  158. idle = idle +0.1
  159. 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 +math.rad(math.random(-1, 1)), 25 +math.rad(math.random(-1, 1)), 0.2 +math.sin(idle) *0.05 +math.rad(math.random(-1, 1))), 0.1)
  160. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, 0.3, 0.1) *CFrame.Angles(0 +math.rad(math.random(-1, 1)), 0 +math.rad(math.random(-1, 1)), -0.2 -math.sin(idle) *0.05 +math.rad(math.random(-1, 1))), 0.1)
  161. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.5, 2.2, 0.1) *CFrame.Angles(0, 25, 0.2), 0.1)
  162. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.5, 2.2, 0.1) *CFrame.Angles(0, 0, -0.2), 0.1)
  163. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0) *CFrame.Angles(0, 0.3 +math.cos(idle) *0.05, 0), 0.1)
  164. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0.1 +math.cos(idle) *0.2, 0), 0.1)
  165. end
  166. if text.Text == "CONQUEST" or text.Text == "BOLD" then
  167. llw.Part1 = owner.Character["HumanoidRootPart"]
  168. rlw.Part1 = owner.Character["HumanoidRootPart"]
  169. idle = idle +0.1
  170. 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 +math.rad(math.random(-6, 6)), 25 +math.rad(math.random(-6, 6)), 0.2 +math.sin(idle) *0.05 +math.rad(math.random(-6, 6))), 0.1)
  171. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, 0.3, 0.1) *CFrame.Angles(0 +math.rad(math.random(-6, 6)), 0 +math.rad(math.random(-6, 6)), -0.2 -math.sin(idle) *0.05 +math.rad(math.random(-6, 6))), 0.1)
  172. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.5, 2.2, 0.1) *CFrame.Angles(0, 25, 0), 0.1)
  173. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.5, 2.2, 0.1) *CFrame.Angles(0, 0, -0.2), 0.1)
  174. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0) *CFrame.Angles(0 +math.rad(math.random(-2, 2)), 0.3 +math.rad(math.random(-2, 2)) +math.cos(idle) *0.05 +math.rad(math.random(-2, 2)), 0 +math.rad(math.random(-2, 2))), 0.1)
  175. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0.1 +math.cos(idle) *0.2, 0) *CFrame.Angles(0 +math.rad(math.random(-2, 2)), 0.3 +math.rad(math.random(-2, 2)) +math.cos(idle) *0.05 +math.rad(math.random(-2, 2)), 0 +math.rad(math.random(-2, 2))), 0.1)
  176. end
  177. if text.Text == "Solar" then
  178. float = float +0.06
  179. llw.Part1 = owner.Character["Torso"]
  180. rlw.Part1 = owner.Character["Torso"]
  181. 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 +math.rad(math.random(-6, 6)), 25 +math.rad(math.random(-6, 6)), 0.2 +math.sin(idle) *0.05 +math.rad(math.random(-6, 6))), 0.1)
  182. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, 0.3, 0.1) *CFrame.Angles(0 +math.rad(math.random(-6, 6)), 0 +math.rad(math.random(-6, 6)), -0.2 -math.sin(idle) *0.05 +math.rad(math.random(-6, 6))), 0.1)
  183. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.5, 2.2, 0.3) *CFrame.Angles(-0.2, 25, 0), 0.1)
  184. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.5, 2.2, 0.1) *CFrame.Angles(0, 0, -0.2), 0.1)
  185. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0.2) *CFrame.Angles(-0.4, 0.3, 0), 0.1)
  186. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, -2 +math.cos(float) *0.2, 0) *CFrame.Angles(math.cos(float) *0.03, 0.3, math.sin(float) *0.03), 0.1)
  187. end
  188. if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
  189. 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)
  190. if text.Text == "Even" then
  191. if hitfloor then
  192. walk = walk +0.1
  193. llw.Part1 = owner.Character["HumanoidRootPart"]
  194. rlw.Part1 = owner.Character["HumanoidRootPart"]
  195. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, 0.3, 0.1) *CFrame.Angles(math.cos(walk) *0.5, 25, 0.2 +math.sin(idle) *0.05), 0.1)
  196. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, 0.3, 0.1) *CFrame.Angles(math.cos(walk) *-0.5, 0, -0.2 -math.sin(idle) *-0.05), 0.1)
  197. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.5, 2.2 -math.cos(walk) *0.2, 0.1) *CFrame.Angles(math.cos(walk) *0.5, 25, 0.05), 0.1)
  198. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.5, 2.2 -math.cos(walk) *0.2, 0.1) *CFrame.Angles(math.cos(walk) *-0.5, 0, -0.05), 0.1)
  199. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0) *CFrame.Angles(0, 0.3 +math.sin(walk) *0.05, 0), 0.1)
  200. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0 +math.sin(walk) *0.04, 0), 0.1)
  201. end
  202. end
  203. if text.Text == "CONQUEST" or text.Text == "Solar" then
  204. if hitfloor then
  205. walk = walk +0.2
  206. llw.Part1 = owner.Character["Torso"]
  207. rlw.Part1 = owner.Character["Torso"]
  208. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, 0.3, 0.1) *CFrame.Angles(math.cos(walk) *0.9, 25, 0.2 +math.sin(idle) *0.05), 0.1)
  209. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, 0.3, 0.1) *CFrame.Angles(math.cos(walk) *-0.9, 0, -0.2 -math.sin(idle) *-0.05), 0.1)
  210. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.5, 2.2 -math.cos(walk) *0.2, 0.1) *CFrame.Angles(math.cos(walk) *0.9, 25, 0.05), 0.1)
  211. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.5, 2.2 -math.cos(walk) *0.2, 0.1) *CFrame.Angles(math.cos(walk) *-0.9, 0, -0.05), 0.1)
  212. 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, 0), 0.1)
  213. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0 +math.sin(walk) *0.1, 0) *CFrame.Angles(0, 0, 0), 0.1)
  214. end
  215. end
  216. if text.Text == "BOLD" then
  217. if hitfloor then
  218. walk = walk +0.1
  219. llw.Part1 = owner.Character["HumanoidRootPart"]
  220. rlw.Part1 = owner.Character["HumanoidRootPart"]
  221. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, 0.3, 0.1) *CFrame.Angles(math.cos(walk) *0.5, 25, 0.2 +math.sin(idle) *0.05), 0.1)
  222. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, 0.3, 0.1) *CFrame.Angles(math.cos(walk) *-0.5, 0, -0.2 -math.sin(idle) *-0.05), 0.1)
  223. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.5, 2.2 -math.cos(walk) *0.2, 0.1) *CFrame.Angles(math.cos(walk) *0.5, 25, 0.05), 0.1)
  224. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.5, 2.2 -math.cos(walk) *0.2, 0.1) *CFrame.Angles(math.cos(walk) *-0.5, 0, -0.05), 0.1)
  225. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0) *CFrame.Angles(0, 0.3 +math.sin(walk) *0.05, 0), 0.1)
  226. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0 +math.sin(walk) *0.04, 0), 0.1)
  227. end
  228. end
  229. end
  230. end
  231. end
  232. end
  233. end
  234. end)
  235.  
  236.  
  237. anim()
  238. mouse.KeyDown:connect(function(key)
  239. if key == "f" then
  240. if deb == false then
  241. deb = true
  242. owner.Character.Humanoid.WalkSpeed = 0
  243. for i = 1,25 do
  244. game:GetService("RunService").Stepped:wait()
  245. song.PlaybackSpeed = song.PlaybackSpeed -0.1
  246. end
  247. mode = mode +1
  248. local part = Instance.new("Part", workspace)
  249. part.Shape = "Ball"
  250. part.CanCollide = false
  251. part.Anchored = true
  252. part.Material = "Neon"
  253. part.Size = Vector3.new(5, 5, 5)
  254. part.CFrame = owner.Character.Torso.CFrame
  255. local sound = Instance.new("Sound", owner.Character.Torso)
  256. sound.SoundId = "rbxassetid://365002938"
  257. sound.Volume = 4
  258. sound:Play()
  259. if mode == 2 then
  260. song.SoundId = "rbxassetid://4390839374"
  261. text.Text = "CONQUEST"
  262. text.TextColor3 = BrickColor.new("Royal purple").Color
  263. band.BrickColor = BrickColor.new("Royal purple")
  264. part.BrickColor = BrickColor.new("Royal purple")
  265. text.Font = "Fantasy"
  266. text.TextStrokeTransparency = 1
  267. song.PlaybackSpeed = 1
  268. owner.Character.Humanoid.WalkSpeed = 25
  269. deb = false
  270. end
  271. if mode == 3 then
  272. song.SoundId = "rbxassetid://2790846194"
  273. text.Text = "Solar"
  274. text.TextColor3 = BrickColor.new("New Yeller").Color
  275. band.BrickColor = BrickColor.new("New Yeller")
  276. part.BrickColor = BrickColor.new("New Yeller")
  277. text.Font = "Gotham"
  278. text.TextStrokeTransparency = 1
  279. song.PlaybackSpeed = 1
  280. owner.Character.Humanoid.WalkSpeed = 25
  281. deb = false
  282. end
  283. if mode == 4 then
  284. song.SoundId = "rbxassetid://953983708"
  285. text.Text = "BOLD"
  286. text.TextColor3 = BrickColor.new("Medium stone grey").Color
  287. band.BrickColor = BrickColor.new("Medium stone grey")
  288. part.BrickColor = BrickColor.new("Medium stone grey")
  289. text.Font = "SourceSansBold"
  290. song.PlaybackSpeed = 1
  291. owner.Character.Humanoid.WalkSpeed = 16
  292. deb = false
  293. end
  294. for i = 1,25 do
  295. game:GetService("RunService").Stepped:wait()
  296. part.Transparency = part.Transparency +0.1
  297. part.Size = part.Size +Vector3.new(1, 1, 1)
  298. end
  299. part:Destroy()
  300. end
  301. end
  302. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement