Advertisement
Ganz_the_Skeleton

Leon Oathkeeper

May 1st, 2019
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.55 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. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer
  5. script.Parent = InternalData.RealOwner.Character
  6. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
  7. local function createObject (connections, index)
  8. local proxy = newproxy (true);local meta = getmetatable (proxy);
  9. local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  10. while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
  11. meta.__index = function (self, i)
  12. if (i == 'TriggerEvent') then return runbind end;
  13. return connections[i] and connections[i].Event or index[i];
  14. end;
  15. meta.__newindex = index;meta.__metatable = false;return proxy
  16. end;
  17. local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  18. local UserInputService = createObject({"InputBegan","InputEnded"},{})
  19. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  20. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  21. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  22. Event.OnServerEvent:Connect(function(FiredBy,Input)
  23. if FiredBy ~= InternalData.RealOwner then return end
  24. if Input.MouseEvent then
  25. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  26. elseif Input.Sound then
  27. if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
  28. else
  29. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  30. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  31. for _,Action in pairs(ContextActionService.Actions) do
  32. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  33. end
  34. Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  35. end
  36. end)
  37. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  38. Event.Parent = NLS([[
  39. local Player = owner;
  40. local Sounds = {};
  41. local Event = script:WaitForChild("UserInput");
  42. local UserInputService = game:GetService("UserInputService");
  43. local Mouse = Player:GetMouse();
  44. local Input = function(Input,gameProcessedEvent)
  45. if gameProcessedEvent then return end
  46. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  47. end
  48. Event.OnClientEvent:connect(function(Args)
  49. if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end
  50. end)
  51. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  52. local Hit,Target
  53. while wait(1/30) do
  54. for x,Sound in pairs(Sounds) do
  55. if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
  56. end
  57. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  58. Hit = Mouse.Hit;Target = Mouse.Target;
  59. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  60. end
  61. end
  62. ]],InternalData.RealOwner.Character)
  63. end
  64. InternalData.NewOwner = setmetatable({},{
  65. __index = function (self,Index)
  66. local Type = type(InternalData.RealOwner[Index])
  67. if Type == "function" then
  68. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  69. return function (self)return InternalData["Mouse"] end
  70. end
  71. return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end
  72. elseif Index == "FakePlayer" then
  73. return true
  74. end
  75. return InternalData.RealOwner[Index]
  76. end;
  77. __tostring = function(self) return tostring(InternalData.RealOwner) end
  78. })
  79. --LoadLibrary("RbxUtility").Create
  80. InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
  81. if Library == "RbxUtility" then
  82. return setmetatable({},{
  83. __tostring = function() return "RbxUtility" end;
  84. __index = function(self, Index)
  85. if Index:lower() == "create" then
  86. return function(Type)
  87. return function(Data)
  88. Data = Data or {}
  89. local Inst = Instance.new(Type)
  90. for x,y in pairs(Data) do
  91. if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
  92. if y == owner then y = InternalData.RealOwner end
  93. Inst[x] = y
  94. end
  95. return Inst
  96. end
  97. end
  98. end
  99. return InternalData.LoadLibrary(Library)[Index]
  100. end
  101. })
  102. end
  103. return InternalData.LoadLibrary(Library)
  104. end
  105. InternalData.RealInstance = Instance;Instance = setmetatable({},{
  106. __index = function (self,Index)
  107. if Index:lower() == 'new' then
  108. return function (Type, Parent)
  109. if Parent == owner then Parent = InternalData.RealOwner end
  110. if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
  111. local Real = InternalData.RealInstance.new(Type,Parent)
  112. if not Type then return end
  113. if Type == "BillboardGui" then
  114. local ToReturn = setmetatable({},{
  115. __index = function (self,Index)
  116. if type(Real[Index]) == "function" then
  117. if Index:lower() == "clone" then
  118. return function (self)
  119. local Real = Real:Clone()
  120. local ToReturn = setmetatable({RealObject = Real},{
  121. __index = function (self,Index)
  122. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  123. return Real[Index]
  124. end;
  125. __newindex = function (self,Index,Value)
  126. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  127. if Value == owner then Value = InternalData.RealOwner end
  128. Real[Index] = Value
  129. end;
  130. __tostring = function(self) return tostring(Real) end;
  131. })
  132. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  133. end
  134. end
  135. return function (self,...) return Real[Index](Real,...)end
  136. end
  137. return Real[Index]
  138. end;
  139. __newindex = function (self,Index,Value)
  140. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  141. if Value == owner then Value = InternalData.RealOwner end
  142. Real[Index] = Value
  143. end;
  144. __tostring = function(self) return tostring(Real) end;
  145. })
  146. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  147. elseif Type:lower() == "sound" then
  148. Real.Parent = owner.Character;
  149. local ToReturn = setmetatable({RealObject = Real},{
  150. __index = function (self,Index)
  151. if Index:lower() == "playbackloudness" then
  152. return InternalData.SoundLoudness[Real] or 0
  153. elseif type(Real[Index]) == "function" then
  154. if Index:lower() == "clone" then
  155. return function (self)
  156. local Real = Real:Clone()
  157. local ToReturn = setmetatable({},{
  158. __index = function (self,Index)
  159. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  160. return Real[Index]
  161. end;
  162. __newindex = function (self,Index,Value)
  163. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  164. if Value == owner then Value = InternalData.RealOwner end
  165. Real[Index] = Value
  166. end;
  167. __tostring = function(self) return tostring(Real) end;
  168. })
  169. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  170. end
  171. end
  172. return function (self,...) return Real[Index](Real,...)end
  173. end
  174. return Real[Index]
  175. end;
  176. __newindex = function (self,Index,Value)
  177. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  178. if Value == owner then Value = InternalData.RealOwner end
  179. Real[Index] = Value
  180. end;
  181. __tostring = function(self) return tostring(Real) end;
  182. })
  183. InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
  184. else
  185. local ToReturn = setmetatable({RealObject = Real},{
  186. __index = function (self,Index)
  187. if type(Real[Index]) == "function" then
  188. if Index:lower() == "clone" then
  189. return function (self)
  190. local Real = Real:Clone()
  191. local ToReturn = setmetatable({},{
  192. __index = function (self,Index)
  193. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  194. return Real[Index]
  195. end;
  196. __newindex = function (self,Index,Value)
  197. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  198. if Value == owner then Value = InternalData.RealOwner end
  199. Real[Index] = Value
  200. end;
  201. __tostring = function(self) return tostring(Real) end;
  202. })
  203. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  204. end
  205. end
  206. return function (self,...) return Real[Index](Real,...)end
  207. end
  208. return Real[Index]
  209. end;
  210. __newindex = function (self,Index,Value)
  211. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  212. if Value == owner then Value = InternalData.RealOwner end
  213. Real[Index] = Value
  214. end;
  215. __tostring = function(self) return tostring(Real) end;
  216. })
  217. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  218. end
  219. end
  220. end
  221. return InternalData.RealInstance[Index]
  222. end;
  223. __tostring = function(self) return tostring(InternalData.RealInstance) end;
  224. });
  225. InternalData.RealGame = game;game = setmetatable({},{
  226. __index = function (self,Index)
  227. if InternalData.RealGame[Index] then
  228. local Type = type(InternalData.RealGame[Index])
  229. if Type == "function" then
  230. if Index:lower() == "getservice" or Index:lower() == "service" then
  231. return function (self,Service)
  232. local FakeServices = {
  233. ["players"] = function()
  234. return setmetatable({},{
  235. __index = function (self2,Index2)
  236. local RealService = InternalData.RealGame:GetService(Service)
  237. local Type2 = type(RealService[Index2])
  238. if Type2 == "function" then
  239. return function (self,...) return RealService[Index2](RealService,...)end
  240. else
  241. if Index2:lower() == "localplayer" then return InternalData.NewOwner end
  242. return RealService[Index2]
  243. end
  244. end;
  245. __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
  246. })
  247. end;
  248. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  249. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  250. ["debris"] = function()
  251. return setmetatable({},{
  252. __index = function(self2,Index2)
  253. local RealService = InternalData.RealGame:GetService(Service)
  254. local Type2 = type(RealService[Index2])
  255. if Type2 == "function" then
  256. if Index2:lower() == "additem" then
  257. return function (self,Item,Time)
  258. if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
  259. return RealService:AddItem(Item,Time)
  260. end
  261. end
  262. return function (self,...) return RealService[Index2](RealService,...) end
  263. end
  264. return RealService[Index2]
  265. end;
  266. __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
  267. })
  268. end;
  269. ["runservice"] = function()
  270. return setmetatable({},{
  271. __index = function(self2,Index2)
  272. local RealService = InternalData.RealGame:GetService(Service)
  273. local Type2 = type(RealService[Index2])
  274. if Type2 == "function" then
  275. return function (self,...) return RealService[Index2](RealService,...) end
  276. else
  277. local RunServices = {
  278. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  279. ["renderstepped"] = function() return RealService["Stepped"] end
  280. }
  281. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  282. return RealService[Index2]
  283. end
  284. end;
  285. __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
  286. })
  287. end
  288. }
  289. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  290. return InternalData.RealGame:GetService(Service)
  291. end
  292. end
  293. return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
  294. else
  295. if game:GetService(Index) then return game:GetService(Index) end
  296. return InternalData.RealGame[Index]
  297. end
  298. end
  299. return nil
  300. end;
  301. __tostring = function(self) return tostring(InternalData.game) end
  302. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
  303. wait(2)
  304.  
  305. --whitelist--
  306. if game.Players.LocalPlayer.userId == 207768666 or game.Players.LocalPlayer.userId == 518409107 or game.Players.LocalPlayer.userId == 208192226 or game.Players.LocalPlayer.userId == 400610816
  307. then
  308. -- friend list
  309. print([[
  310. ___________________________________
  311.  
  312. Whitelist system
  313. Build 0001
  314. 1x1x1x1IAMbck
  315.  
  316. ___________________________________
  317. ]])
  318.  
  319. function checkfriendlist(model)
  320. local friend = true
  321. local target = nil
  322. if model.ClassName == "Player" then
  323. target = model
  324. else
  325. target = game:GetService("Players"):GetPlayerFromCharacter(model)
  326. end
  327. if target ~= nil then
  328. if target:IsFriendsWith(207768666) then friend = true end
  329. end
  330. return friend
  331. end
  332.  
  333. if checkfriendlist(game:GetService("Players").LocalPlayer) == false and not game:GetService("Players").LocalPlayer:FindFirstChild("Kyu's Temp Really blacklist") then
  334. warn("You're not whitelisted")
  335. --wait(1)
  336. --error("Script has been stopped.")
  337. end
  338.  
  339. warn("You're whitelisted, "..game:GetService("Players").LocalPlayer.Name.." :)")
  340.  
  341. else
  342. while true do
  343. wait()
  344. local blind = Instance.new('ScreenGui')
  345. local user = game.Players.LocalPlayer
  346. blind.Parent = user.PlayerGui
  347. local scr = Instance.new('TextLabel')
  348. scr.Parent = blind
  349. scr.Text = "Ur not whitelisted "..game.Players.LocalPlayer.Name.." "
  350. scr.TextScaled = true
  351. scr.Font = Enum.Font.Arial
  352. scr.TextColor = BrickColor.new(1001)
  353. scr.BackgroundColor3 = Color3.new(0.235294, 0.235294, 0.235294)
  354. scr.BorderColor3 = Color3.new(0, 0, 0)
  355. scr.Position = UDim2.new(0, 0, 0, 0)
  356. scr.Size = UDim2.new(1, 1, 1, 1)
  357. end
  358. end
  359.  
  360. --whitelist--
  361. --chat
  362. Player = game:GetService("Players").LocalPlayer
  363. PlayerGui = Player.PlayerGui
  364. Cam = workspace.CurrentCamera
  365. Backpack = Player.Backpack
  366. Character = Player.Character
  367. char = Player.Character
  368. Humanoid = Character.Humanoid
  369. Mouse = Player:GetMouse()
  370. RootPart = Character["HumanoidRootPart"]
  371. Torso = Character["Torso"]
  372. Head = Character["Head"]
  373. RightArm = Character["Right Arm"]
  374. LeftArm = Character["Left Arm"]
  375. RightLeg = Character["Right Leg"]
  376. LeftLeg = Character["Left Leg"]
  377. RootJoint = RootPart["RootJoint"]
  378. Neck = Torso["Neck"]
  379. RightShoulder = Torso["Right Shoulder"]
  380. LeftShoulder = Torso["Left Shoulder"]
  381. RightHip = Torso["Right Hip"]
  382. LeftHip = Torso["Left Hip"]
  383.  
  384. local Orin = "http://www.roblox.com/asset/?id=7074786"
  385. Head.face.Texture = Orin
  386. function weld(a, b, acf)
  387. local w = Instance.new("Weld", a)
  388. w.Part0 = a
  389. w.Part1 = b
  390. w.C0 = acf
  391. end
  392. local righteyebrickcolor = "Royal purple"
  393. local reye = Instance.new("Part", char)
  394. reye.CanCollide = false
  395. reye.BrickColor = BrickColor.new(righteyebrickcolor)
  396. reye.Material = "Neon"
  397. reye.Size = Vector3.new(.25,.35,.15)
  398. weld(reye, char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(1,0,0))
  399. m1 = Instance.new("SpecialMesh", reye)
  400. m1.MeshType = "Sphere"
  401. m1.Scale = Vector3.new(0.9,0.9,0.9)
  402. reye.Locked = true
  403. reye.Name = "re"
  404.  
  405.  
  406. --chat
  407.  
  408. local p = game:GetService("Players").LocalPlayer
  409. local plr = game:GetService("Players").LocalPlayer
  410. local player = game:GetService("Players").LocalPlayer
  411. local char = p.Character
  412. local mouse = p:GetMouse()
  413. local larm = char:WaitForChild("Left Arm")
  414. local rarm = char:WaitForChild("Right Arm")
  415. local lleg = char:WaitForChild("Left Leg")
  416. local rleg = char:WaitForChild("Right Leg")
  417. local hed = char:WaitForChild("Head")
  418. local torso = char:WaitForChild("Torso")
  419. local root = char:WaitForChild("HumanoidRootPart")
  420. local hum = char:FindFirstChildOfClass("Humanoid")
  421. local debris = game:GetService("Debris")
  422. local run = game:GetService("RunService")
  423. local rs = run.RenderStepped
  424. local cam = workspace.CurrentCamera
  425. local movement = 4
  426. local change = 0.4
  427. local DebrisModel = Instance.new("Model",char)
  428. local stealth = false
  429. local debounce = false
  430. hum.MaxHealth = 50000
  431. hum.Health = hum.MaxHealth
  432. themeid = 2114921530
  433. themepitch = 1
  434. main = {r = 0;g = 100;b = 255;v = 1}
  435. if p:FindFirstChild("rcolor") then main.r = p.rcolor.Value else local string = Instance.new("StringValue",p) string.Name = "rcolor" end
  436. if p:FindFirstChild("gcolor") then main.g = p.gcolor.Value else local string = Instance.new("StringValue",p) string.Name = "gcolor" end
  437. if p:FindFirstChild("bcolor") then main.b = p.bcolor.Value else local string = Instance.new("StringValue",p) string.Name = "bcolor" end
  438. if p:FindFirstChild("vcolor") then main.v = p.vcolor.Value else local string = Instance.new("StringValue",p) string.Name = "vcolor" end
  439. if p:FindFirstChild("idtheme") then themeid = p.idtheme.Value else local string = Instance.new("StringValue",p) string.Name = "idtheme" end
  440. if p:FindFirstChild("pitchtheme") then themepitch = p.pitchtheme.Value else local string = Instance.new("StringValue",p) string.Name = "pitchtheme" end
  441. pr = p:FindFirstChild("rcolor")
  442. pg = p:FindFirstChild("gcolor")
  443. pb = p:FindFirstChild("bcolor")
  444. pv = p:FindFirstChild("vcolor")
  445. idth = p:FindFirstChild("idtheme")
  446. pith = p:FindFirstChild("pitchtheme")
  447. main_color = Color3.fromRGB(main.r,main.g,main.b)
  448. explosionid = {262562442,144699494,539294959,1388740053}
  449. --919941001
  450. Prefix = "/"
  451. p.Chatted:connect(function(msg)
  452.  
  453. if msg:lower():sub(1,#Prefix+#'color r ')==Prefix..'color r ' then
  454. local v = tonumber(msg:sub(#Prefix+#'color r '+1))
  455. main.r = v
  456. elseif msg:lower():sub(1,#Prefix+#'color g ')==Prefix..'color g ' then
  457. local v = tonumber(msg:sub(#Prefix+#'color g '+1))
  458. main.g = v
  459. elseif msg:lower():sub(1,#Prefix+#'color b ')==Prefix..'color b ' then
  460. local v = tonumber(msg:sub(#Prefix+#'color b '+1))
  461. main.b = v
  462. elseif msg:lower():sub(1,#Prefix+#'color v ')==Prefix..'color v ' then
  463. local v = tonumber(msg:sub(#Prefix+#'color v '+1))
  464. if v > 1 then main.v = 1 elseif v < -1 then main.v = -1 else main.v = v end
  465.  
  466. elseif msg:lower():sub(1,#Prefix+#'theme ')==Prefix..'theme ' then
  467. local v = tonumber(msg:sub(#Prefix+#'theme '+1))
  468. themeid = v
  469. music(themeid,themepitch)
  470.  
  471. elseif msg:lower():sub(1,#Prefix+#'pitch ')==Prefix..'pitch ' then
  472. local v = tonumber(msg:sub(#Prefix+#'pitch '+1))
  473. themepitch = v
  474. music(themeid,themepitch)
  475.  
  476. elseif msg:lower():sub(1,#Prefix+#'prefix ')==Prefix..'prefix ' then
  477. local v = msg:sub(#Prefix+#'prefix '+1)
  478. Prefix = v
  479.  
  480. elseif msg:lower():sub(1,#Prefix+#'reset')==Prefix..'reset' then
  481. main.r = 0
  482. main.g = 100
  483. main.b = 255
  484. main.v = 1
  485. themeid = 679355361
  486. themepitch = 1
  487. music(themeid,themepitch)
  488.  
  489. end
  490.  
  491. end)
  492. ----------------------------------------------------------------------------
  493. no_anim = false
  494. attack = false
  495. attacking = false
  496. canjump = true
  497. aiming_anim = false
  498. animid = math.random(0,1)
  499. timer = 0
  500. bg = Instance.new("BodyGyro",root)
  501. bg.P = 100000
  502. bg.D = 100
  503. ----------------------------------------------------------------------------
  504.  
  505. function rswait(value)
  506. if value ~= nil and value ~= 0 then
  507. for i=1,value do
  508. rs:wait()
  509. end
  510. else
  511. rs:wait()
  512. end
  513. end
  514.  
  515. ----------------------------------------------------------------------------
  516. max = 0
  517. function music(id,pitch)
  518. max = 0
  519. if id == "Stop" then
  520. if not torso:FindFirstChild("MusicRuin") then
  521. soundz = Instance.new("Sound",torso)
  522. end
  523. soundz:Stop()
  524. else
  525. if not torso:FindFirstChild("MusicRuin") then
  526. soundz = Instance.new("Sound",torso)
  527. end
  528. soundz.MaxDistance = 150*5
  529. soundz.EmitterSize = 150/5
  530. soundz.Volume = 10
  531. soundz.Name = "MusicRuin"
  532. soundz.Looped = true
  533. soundz.PlaybackSpeed = pitch
  534. soundz.SoundId = "rbxassetid://"..id
  535. soundz:Stop()
  536. soundz:Play()
  537. end
  538. end
  539.  
  540. ----------------------------------------------------------------------------
  541.  
  542. function lerp(a, b, t)
  543. return a + (b - a)*t
  544. end
  545.  
  546. ----------------------------------------------------------------------------
  547.  
  548. function Lerp(c1,c2,al)
  549. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  550. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  551. for i,v in pairs(com1) do
  552. com1[i] = v+(com2[i]-v)*al
  553. end
  554. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  555. end
  556.  
  557. ----------------------------------------------------------------------------
  558.  
  559. function slerp(a, b, t)
  560. dot = a:Dot(b)
  561. if dot > 0.99999 or dot < -0.99999 then
  562. return t <= 0.5 and a or b
  563. else
  564. r = math.acos(dot)
  565. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  566. end
  567. end
  568.  
  569. ----------------------------------------------------------------------------
  570.  
  571. function clerp(c1,c2,al)
  572.  
  573. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  574.  
  575. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  576.  
  577. for i,v in pairs(com1) do
  578.  
  579. com1[i] = lerp(v,com2[i],al)
  580.  
  581. end
  582.  
  583. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  584.  
  585. end
  586.  
  587. ----------------------------------------------------------------------------
  588.  
  589. function findAllNearestTorso(pos,dist)
  590. local list = game.Workspace:children()
  591. local torso = {}
  592. local temp = nil
  593. local human = nil
  594. local temp2 = nil
  595. for x = 1, #list do
  596. temp2 = list[x]
  597. if (temp2.className == "Model") and (temp2 ~= char) then
  598. local nayem = "Torso"
  599. if temp2:findFirstChild("UpperTorso") then nayem = "UpperTorso" end
  600. temp = temp2:findFirstChild(nayem)
  601. human = temp2:findFirstChildOfClass("Humanoid")
  602. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  603. if (temp.Position - pos).magnitude < dist then
  604. table.insert(torso,temp)
  605. dist = (temp.Position - pos).magnitude
  606. end
  607. end
  608. end
  609. end
  610. return torso
  611. end
  612.  
  613. ----------------------------------------------------------------------------
  614.  
  615. local isAPlayer
  616. function checkIfNotPlayer(model)
  617. coroutine.resume(coroutine.create(function()
  618. if model ~= char and model.Parent ~= char and model.Parent.Parent ~= char and model.Parent ~= DebrisModel and model.Parent.Parent ~= DebrisModel and model.Parent.Parent.Parent ~= DebrisModel then
  619. isAPlayer = true
  620. else
  621. isAPlayer = false
  622. end
  623. end))
  624. return isAPlayer
  625. end
  626.  
  627. ----------------------------------------------------------------------------
  628.  
  629. function computeDirection(vec)
  630. local lenSquared = vec.magnitude * vec.magnitude
  631. local invSqrt = 1 / math.sqrt(lenSquared)
  632. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  633. end
  634.  
  635. ----------------------------------------------------------------------------
  636.  
  637. function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
  638.  
  639. local wld = Instance.new("Weld", wp1)
  640.  
  641. wld.Part0 = wp0
  642.  
  643. wld.Part1 = wp1
  644.  
  645. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  646.  
  647. return wld
  648.  
  649. end
  650.  
  651. ----------------------------------------------------------------------------
  652.  
  653. function weld(model)
  654. local parts,last = {}
  655. local function scan(parent)
  656. for _,v in pairs(parent:GetChildren()) do
  657. if (v:IsA("BasePart")) then
  658. if (last) then
  659. local w = Instance.new("Weld")
  660. w.Name = ("%s_Weld"):format(v.Name)
  661. w.Part0,w.Part1 = last,v
  662. w.C0 = last.CFrame:inverse()
  663. w.C1 = v.CFrame:inverse()
  664. w.Parent = last
  665. end
  666. last = v
  667. table.insert(parts,v)
  668. end
  669. scan(v)
  670. end
  671. end
  672. scan(model)
  673. for _,v in pairs(parts) do
  674. v.Anchored = false
  675. v.Locked = true
  676. end
  677. end
  678.  
  679. ----------------------------------------------------------------------------
  680.  
  681. function sound(id,position,vol,pitch,dist,start,finish)
  682. coroutine.resume(coroutine.create(function()
  683.  
  684. local part = Instance.new("Part",DebrisModel)
  685. part.Anchored = true
  686. part.Position = position
  687. part.Size = Vector3.new(0,0,0)
  688. part.CanCollide = false
  689. part.Transparency = 1
  690.  
  691. soundasd = Instance.new("Sound",part)
  692.  
  693. soundasd.SoundId = "rbxassetid://"..id
  694.  
  695. if vol ~= nil then
  696. soundasd.Volume = vol
  697. end
  698.  
  699. if pitch ~= nil then
  700. soundasd.PlaybackSpeed = pitch
  701. end
  702.  
  703. if dist ~= nil then
  704. soundasd.MaxDistance = dist*5
  705. soundasd.EmitterSize = dist/5
  706. end
  707.  
  708. delay(0.5,function() debris:AddItem(part,soundasd.TimeLength+3) end)
  709.  
  710. soundasd:Play()
  711.  
  712. end))
  713. return soundasd
  714. end
  715.  
  716. function createsound(id,parent)
  717.  
  718. local soundz = Instance.new("Sound",parent)
  719.  
  720. soundz.SoundId = "rbxassetid://"..id
  721.  
  722. return soundz
  723.  
  724. end
  725.  
  726. function playsound(sond,vol,pitch,start)
  727.  
  728. if vol ~= nil then
  729. sond.Volume = vol
  730. end
  731.  
  732. if pitch ~= nil then
  733. sond.PlaybackSpeed = pitch
  734. end
  735.  
  736. if start ~= nil then
  737. sond.TimePosition = start
  738. end
  739.  
  740. sond:Play()
  741.  
  742. end
  743.  
  744. ----------------------------------------------------------------------------
  745. eColors={"Really red","Really black"}
  746. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans)
  747. local magz = (Part0 - Part1).magnitude
  748. local curpos = Part0
  749. local trz = {-Offset,Offset}
  750. for i=1,Times do
  751. local li = Instance.new("Part", DebrisModel)
  752. li.TopSurface =0
  753. li.Material = Enum.Material.Neon
  754. li.BottomSurface = 0
  755. li.Anchored = true
  756. li.Locked = true
  757. li.Transparency = Trans or 0.4
  758. li.BrickColor = BrickColor.new(Color)
  759. li.formFactor = "Custom"
  760. li.CanCollide = false
  761. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  762. local lim = Instance.new("BlockMesh",li)
  763. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  764. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  765. if Times == i then
  766. local magz2 = (curpos - Part1).magnitude
  767. li.Size = Vector3.new(Thickness,Thickness,magz2)
  768. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  769. else
  770. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  771. end
  772. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  773. li.Name = "LIGHTNING"
  774. end
  775. end
  776.  
  777. ----------------------------------------------------------------------------
  778.  
  779. local HBill = Instance.new("BillboardGui",hed)
  780. local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
  781. local HName = Instance.new("TextLabel")
  782. HBill.Size = UDim2.new(15,0,2.2,0)
  783. HBill.StudsOffset = Vector3.new(3.675,1.2,0)
  784. HBill.AlwaysOnTop = true
  785. HBill.Enabled = true
  786. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  787. HMain.BackgroundTransparency = 1
  788. HMain.Size = UDim2.new(.5,0,.2,0)
  789. HName.Parent = HMain
  790. HName.BackgroundTransparency = 1
  791. HName.BackgroundColor3 = Color3.new(244,255,25)
  792. HName.BorderColor3 = Color3.new(244,255,25)
  793. HName.BorderSizePixel = 2
  794. HName.Size = UDim2.new(1,0,.75,0)
  795. HName.Font = "Code"
  796. HName.Text = [[( Hero of time)]]
  797. HName.TextScaled = true
  798. HName.TextColor3 = Color3.new(244,255,25)
  799. HName.TextStrokeColor3 = Color3.new(0.1,0.1,0.1)
  800. HName.TextStrokeTransparency = 0
  801. HName.TextYAlignment = "Bottom"
  802.  
  803. local HBill = Instance.new("BillboardGui",hed)
  804. local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
  805. local HName = Instance.new("TextLabel")
  806. HBill.Size = UDim2.new(15,0,2.2,0)
  807. HBill.StudsOffset = Vector3.new(3.675,2,0)
  808. HBill.AlwaysOnTop = true
  809. HBill.Enabled = true
  810. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  811. HMain.BackgroundTransparency = 1
  812. HMain.Size = UDim2.new(.5,0,.5,0)
  813. HName.Parent = HMain
  814. HName.BackgroundTransparency = 1
  815. HName.BackgroundColor3 = Color3.new(0,0,0)
  816. HName.BorderColor3 = Color3.new(0,0,0)
  817. HName.BorderSizePixel = 2
  818. HName.Size = UDim2.new(1,0,.75,0)
  819. HName.Font = "Antique"
  820. HName.Text = [[Leon Oath]]
  821. HName.TextScaled = true
  822. HName.TextColor3 = Color3.new(0,1,1)
  823. HName.TextStrokeColor3 = Color3.new(0,0,0)
  824. HName.TextStrokeTransparency = 0
  825. HName.TextYAlignment = "Bottom"
  826.  
  827. function bigboomrektxd()
  828. coroutine.resume(coroutine.create(function()
  829. local magnitude = nil
  830. local Position = nil
  831. if animid == 0 then
  832. Position = larm.Position
  833. else
  834. Position = rarm.Position
  835. end
  836. --sound(743499393,Position,10,math.random(6,8)/10)
  837. sound(440145223,Position,10,math.random(10,12)/10,50)
  838.  
  839. local Part1 = Instance.new("Part")
  840. local mesh2 = Instance.new("SpecialMesh",Part1)
  841. mesh2.MeshId = "rbxassetid://559831844"
  842. mesh2.Scale = Vector3.new(0,0,0.4)
  843. Part1.Material = Enum.Material.Neon
  844. Part1.CanCollide = false
  845. Part1.Color = Color3.fromHSV(0,0,main.v)
  846. Part1.Parent = DebrisModel
  847. Part1.Size = Vector3.new(0,0,0)
  848. Part1.Anchored = true
  849. Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
  850. Part1.Name = "EXPLOSION2"
  851.  
  852. local Part0 = Instance.new("Part",DebrisModel)
  853. local PointLight2 = Instance.new("PointLight")
  854. Part0.Name = "Bullet"
  855. Part0.Material = Enum.Material.Neon
  856. Part0.Color = Color3.fromHSV(0,0,main.v)
  857. Part0.Anchored = false
  858. Part0.Size = Vector3.new(5, 5, 5)
  859. local mesh = Instance.new("SpecialMesh",Part0)
  860. mesh.MeshType = Enum.MeshType.Sphere
  861. local bforce = Instance.new("BodyForce",Part0)
  862. bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0)
  863. Part0.CanCollide = false
  864. PointLight2.Parent = Part0
  865. PointLight2.Color = Part0.Color
  866. local Target = mouse.Hit.p
  867. local direction = Target - Position
  868. local direction = computeDirection(direction)
  869. local pos = Position + (direction * 2)
  870. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  871. Part0.Velocity = direction * 60
  872. local asd = nil
  873. local loop = nil
  874. delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end)
  875. loop = rs:connect(function()
  876. local asdf = math.random(500,1000)/1000
  877. local Part1 = Instance.new("Part")
  878. local mesh2 = Instance.new("SpecialMesh",Part1)
  879. mesh2.MeshType = Enum.MeshType.Sphere
  880. Part1.Material = Enum.Material.Neon
  881. Part1.CanCollide = false
  882. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  883. Part1.Parent = DebrisModel
  884. Part1.Size = Part0.Size + Vector3.new(asdf,asdf,asdf)
  885. Part1.Anchored = true
  886. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/750,math.random(-1000,1000)/750,math.random(-1000,1000)/750))
  887. Part1.Name = "SMOKE"
  888. end)
  889. asd = Part0.Touched:connect(function(ht)
  890. local hit=ht.Parent
  891. if checkIfNotPlayer(ht) == true and ht.CanCollide == true then
  892. asd:disconnect()
  893. loop:disconnect()
  894. Part0:Destroy()
  895.  
  896. sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(6,9)/10,200)
  897. for i,v in pairs(findAllNearestTorso(Part0.Position,50)) do
  898. if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
  899. v:Destroy()
  900. else
  901. v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(50,60)/10))
  902. end
  903. local Position = Part0.Position
  904. local Target = v.Position
  905. local direction = Target - Position
  906. local direction = computeDirection(direction)
  907. local bv = Instance.new("BodyVelocity",v)
  908. bv.Velocity = direction * (50 - ((Position - Target).magnitude/2))
  909. debris:AddItem(bv,1)
  910. end
  911. for i=1,14,2 do for x=1,math.random(0,1) do rs:wait() end
  912. for z=1,math.random(2,3) do
  913. local asdf = math.random(-5,5)*10-(i/20)*8
  914. local Part1 = Instance.new("Part")
  915. local mesh2 = Instance.new("SpecialMesh",Part1)
  916. mesh2.MeshType = Enum.MeshType.Sphere
  917. mesh2.Scale = Vector3.new(0,0,0)
  918. Part1.Material = Enum.Material.Neon
  919. Part1.CanCollide = false
  920. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  921. Part1.Parent = DebrisModel
  922. Part1.Size = Vector3.new(asdf,asdf,asdf)
  923. Part1.Anchored = true
  924. local a = i*0.5
  925. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-10,10),math.random(-2,2)*a))
  926. Part1.Name = "EXPLOSION"
  927. end
  928. end
  929.  
  930. end
  931. end)
  932. end))
  933. end
  934.  
  935. holdclick=false
  936.  
  937. mouse.Button1Down:connect(function()
  938. if debounce == false then
  939. if animid == 0 then
  940. animid = 1
  941. else
  942. animid = 0
  943. end
  944. debounce = true
  945. holdclick = true
  946. aiming_anim = true
  947. wait(0.2)
  948. repeat
  949. rs:wait()
  950. timer = 150
  951. until holdclick == false
  952. bigboomrektxd()
  953.  
  954. local Position = mouse.Hit.p
  955. local Target = root.Position
  956. local direction = Target - Position
  957. local direction = computeDirection(direction)
  958. root.Velocity = direction * 150
  959.  
  960. aiming_anim = false
  961. delay(0.3,function() debounce = false end)
  962. end
  963. end)
  964.  
  965. mouse.Button1Up:connect(function()
  966. holdclick=false
  967. end)
  968.  
  969. function dashasdf()
  970. debounce = true
  971.  
  972. canjump = false
  973. attack = true
  974.  
  975. for i,v in pairs(char:GetChildren()) do
  976. if v ~= root then
  977. if v:IsA("Part") then
  978. v.Transparency = 1
  979. elseif v:IsA("Accoutrement") then
  980. v:FindFirstChildOfClass("Part").Transparency = 1
  981. end
  982. end
  983. end
  984.  
  985. local tempattachment = Instance.new("Attachment",root)
  986. tempattachment.Position = Vector3.new(0,0,-4)
  987.  
  988. for i=1,20 do rs:wait()
  989. root.Velocity = Vector3.new(0,0,0)
  990. root.CFrame = CFrame.new(tempattachment.WorldPosition) * CFrame.Angles(math.rad(root.Orientation.X),math.rad(root.Orientation.Y),math.rad(root.Orientation.Z))
  991. local asdf = math.random(500,1000)/100
  992. local Part1 = Instance.new("Part")
  993. local mesh2 = Instance.new("SpecialMesh",Part1)
  994. mesh2.MeshType = Enum.MeshType.Sphere
  995. Part1.Material = Enum.Material.Neon
  996. Part1.CanCollide = false
  997. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  998. Part1.Parent = DebrisModel
  999. Part1.Size = Vector3.new(asdf,asdf,asdf)
  1000. Part1.Anchored = true
  1001. Part1.CFrame = CFrame.new(root.Position + Vector3.new(math.random(-1000,1000)/500,math.random(-1000,1000)/500,math.random(-1000,1000)/500))
  1002. Part1.Name = "SMOKE"
  1003. end
  1004.  
  1005. tempattachment:Destroy()
  1006.  
  1007. for i,v in pairs(char:GetChildren()) do
  1008. if v ~= root then
  1009. if v:IsA("Part") then
  1010. v.Transparency = 0
  1011. elseif v:IsA("Accoutrement") then
  1012. v:FindFirstChildOfClass("Part").Transparency = 0
  1013. end
  1014. end
  1015. end
  1016.  
  1017. canjump = true
  1018. attack = false
  1019.  
  1020. delay(0.1,function() debounce = false end)
  1021. end
  1022.  
  1023. function laz0r()
  1024.  
  1025. local Position = nil
  1026. if animid == 0 then
  1027. Position = larm.Position
  1028. else
  1029. Position = rarm.Position
  1030. end
  1031.  
  1032. local Part1 = Instance.new("Part")
  1033. local mesh2 = Instance.new("SpecialMesh",Part1)
  1034. mesh2.MeshId = "rbxassetid://559831844"
  1035. mesh2.Scale = Vector3.new(0,0,0.4)
  1036. Part1.Material = Enum.Material.Neon
  1037. Part1.CanCollide = false
  1038. Part1.Color = Color3.fromHSV(0,0,main.v)
  1039. Part1.Parent = DebrisModel
  1040. Part1.Size = Vector3.new(0,0,0)
  1041. Part1.Anchored = true
  1042. Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
  1043. Part1.Name = "EXPLOSION3"
  1044.  
  1045. local Part0 = Instance.new("Part",DebrisModel)
  1046. Part0.Name = "Bullet"
  1047. Part0.Material = Enum.Material.Neon
  1048. Part0.Color = Color3.fromHSV(0,0,main.v)
  1049. Part0.Anchored = true
  1050. local mesh = Instance.new("SpecialMesh",Part0)
  1051. mesh.MeshType = Enum.MeshType.Sphere
  1052. Part0.CanCollide = false
  1053. local Target = mouse.Hit.p
  1054. local direction = Target - Position
  1055. local direction = computeDirection(direction)
  1056. local ray = Ray.new(Position, (Target-Position).unit*1048)
  1057. local part, endPoint = workspace:FindPartOnRay(ray, char)
  1058. Part0.Size = Vector3.new(5,1,5)
  1059. mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
  1060. local pos = Position + (direction * (mesh.Scale.Y/2))
  1061. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  1062.  
  1063. clashpart = Instance.new("Part",DebrisModel)
  1064. clashpart.Size = Vector3.new(50,50,50)
  1065. clashpart.CanCollide = false
  1066. clashpart.Anchored = true
  1067. clashpart.Transparency = 1
  1068. clashpart.Color = main_color
  1069. clashpart.Name = "StarLightClash"
  1070. clashpart.CFrame = CFrame.new(endPoint, root.Position)
  1071.  
  1072. sound(1177475476,Position,10,math.random(5,6)/10,300)
  1073.  
  1074. local z = 10
  1075. for i = 1,100 do rs:wait()
  1076. if animid == 0 then
  1077. Position = larm.Position
  1078. else
  1079. Position = rarm.Position
  1080. end
  1081. local Target = mouse.Hit.p
  1082. local direction = Target - Position
  1083. local direction = computeDirection(direction)
  1084. local ray = Ray.new(Position, (Target-Position).unit*1048)
  1085. local part, endPoint = workspace:FindPartOnRay(ray, char)
  1086. Part0.Size = Vector3.new(5-((i/100)*5),1,5-((i/100)*5))
  1087. mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
  1088. mesh.Offset = Vector3.new(math.random(-10000,10000)/20000,math.random(-10000,10000)/20000,0)
  1089. local pos = Position + (direction * (mesh.Scale.Y/2))
  1090. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  1091. clashpart.CFrame = CFrame.new(endPoint, root.Position)
  1092.  
  1093. local Position = mouse.Hit.p
  1094. local Target = root.Position
  1095. local direction = Target - Position
  1096. local direction = computeDirection(direction)
  1097. root.Velocity = direction * 5
  1098.  
  1099. if i >= z then z = i + 10 sound(explosionid[math.random(1,#explosionid)],endPoint,10,math.random(6,9)/10,200) end
  1100.  
  1101. Part1 = Part0:Clone()
  1102. Part1.Parent = DebrisModel
  1103. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  1104. Part1.Name = "SMOKE2"
  1105.  
  1106. if part ~= nil then
  1107. if part.Name == "StarLightClash" then
  1108. local asdf = math.random(0,5)*20
  1109. local Part1 = Instance.new("Part")
  1110. local mesh2 = Instance.new("SpecialMesh",Part1)
  1111. mesh2.MeshType = Enum.MeshType.Sphere
  1112. mesh2.Scale = Vector3.new(0,0,0)
  1113. Part1.Material = Enum.Material.Neon
  1114. Part1.CanCollide = false
  1115. Part1.Color = Color3.fromHSV(Color3.toHSV(Color3.fromRGB((main.r+(255*part.Color.r))/2,(main.g+(255*part.Color.g))/2,(main.b+(255*part.Color.b))/2)),math.random(5000,10000)/10000,main.v)
  1116. Part1.Parent = DebrisModel
  1117. Part1.Size = Vector3.new(asdf,asdf,asdf)
  1118. Part1.Anchored = true
  1119. local a = 1.5
  1120. Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a))
  1121. Part1.Name = "EXPLOSION"
  1122. else
  1123. local asdf = math.random(0,5)*10
  1124. local Part1 = Instance.new("Part")
  1125. local mesh2 = Instance.new("SpecialMesh",Part1)
  1126. mesh2.MeshType = Enum.MeshType.Sphere
  1127. mesh2.Scale = Vector3.new(0,0,0)
  1128. Part1.Material = Enum.Material.Neon
  1129. Part1.CanCollide = false
  1130. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  1131. Part1.Parent = DebrisModel
  1132. Part1.Size = Vector3.new(asdf,asdf,asdf)
  1133. Part1.Anchored = true
  1134. local a = 1.5
  1135. Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a))
  1136. Part1.Name = "EXPLOSION"
  1137. end
  1138. end
  1139.  
  1140. for i,v in pairs(findAllNearestTorso(endPoint,50)) do
  1141. if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
  1142. v:Destroy()
  1143. else
  1144. v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/math.random(120,180))
  1145. end
  1146. local Position = mouse.Hit.p
  1147. local Target = v.Position
  1148. local direction = Target - Position
  1149. local direction = computeDirection(direction)
  1150. local bv = Instance.new("BodyVelocity",v)
  1151. bv.Velocity = direction * (10 - ((Position - Target).magnitude/2))
  1152. debris:AddItem(bv,1)
  1153. end
  1154.  
  1155. end
  1156. clashpart:Destroy()
  1157. Part0:Destroy()
  1158. wait(0.3)
  1159. aiming_anim = false
  1160. delay(0.3,function() debounce = false end)
  1161. end
  1162.  
  1163. function nukewelpo()
  1164. coroutine.resume(coroutine.create(function()
  1165. local magnitude = nil
  1166. local Position = nil
  1167. if animid == 0 then
  1168. Position = larm.Position
  1169. else
  1170. Position = rarm.Position
  1171. end
  1172. --sound(743499393,Position,10,math.random(6,8)/10)
  1173. sound(440145223,Position,10,math.random(4,5)/10,100)
  1174.  
  1175. local Part1 = Instance.new("Part")
  1176. local mesh2 = Instance.new("SpecialMesh",Part1)
  1177. mesh2.MeshId = "rbxassetid://559831844"
  1178. mesh2.Scale = Vector3.new(0,0,0.4)
  1179. Part1.Material = Enum.Material.Neon
  1180. Part1.CanCollide = false
  1181. Part1.Color = Color3.fromHSV(0,0,main.v)
  1182. Part1.Parent = DebrisModel
  1183. Part1.Size = Vector3.new(0,0,0)
  1184. Part1.Anchored = true
  1185. Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
  1186. Part1.Name = "EXPLOSION3"
  1187.  
  1188. local Part0 = Instance.new("Part",DebrisModel)
  1189. local PointLight2 = Instance.new("PointLight")
  1190. Part0.Name = "Bullet"
  1191. Part0.Material = Enum.Material.Neon
  1192. Part0.Color = Color3.fromHSV(0,0,main.v)
  1193. Part0.Anchored = false
  1194. Part0.Size = Vector3.new(5, 5, 5)
  1195. local mesh = Instance.new("SpecialMesh",Part0)
  1196. mesh.MeshType = Enum.MeshType.Sphere
  1197. mesh.Scale = Vector3.new(3,3,3)
  1198. local bforce = Instance.new("BodyForce",Part0)
  1199. bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0)
  1200. Part0.CanCollide = false
  1201. PointLight2.Parent = Part0
  1202. PointLight2.Color = Part0.Color
  1203. local Target = mouse.Hit.p
  1204. local direction = Target - Position
  1205. local direction = computeDirection(direction)
  1206. local pos = Position + (direction * 2)
  1207. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  1208. Part0.Velocity = direction * 150
  1209. local asd = nil
  1210. local loop = nil
  1211. delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end)
  1212. loop = rs:connect(function()
  1213. local asdf = math.random(500,1000)/1000
  1214. local Part1 = Instance.new("Part")
  1215. local mesh2 = Instance.new("SpecialMesh",Part1)
  1216. mesh2.MeshType = Enum.MeshType.Sphere
  1217. Part1.Material = Enum.Material.Neon
  1218. Part1.CanCollide = false
  1219. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  1220. Part1.Parent = DebrisModel
  1221. Part1.Size = (Part0.Size*3) + Vector3.new(asdf,asdf,asdf)
  1222. Part1.Anchored = true
  1223. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-3000,3000)/750,math.random(-3000,3000)/750,math.random(-3000,3000)/750))
  1224. Part1.Name = "SMOKE"
  1225. end)
  1226. asd = Part0.Touched:connect(function(ht)
  1227. local hit=ht.Parent
  1228. if checkIfNotPlayer(ht) == true and ht.CanCollide == true then
  1229. asd:disconnect()
  1230. loop:disconnect()
  1231. Part0:Destroy()
  1232.  
  1233. sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(3,5)/10,500)
  1234. for i,v in pairs(findAllNearestTorso(Part0.Position,160)) do
  1235. if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
  1236. v:Destroy()
  1237. else
  1238. v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(20,30)/10))
  1239. end
  1240. local Position = Part0.Position
  1241. local Target = v.Position
  1242. local direction = Target - Position
  1243. local direction = computeDirection(direction)
  1244. local bv = Instance.new("BodyVelocity",v)
  1245. bv.Velocity = direction * (120 - ((Position - Target).magnitude/2))
  1246. debris:AddItem(bv,1)
  1247. end
  1248. for i=1,10,0.5 do for x=1,math.random(0,1) do rs:wait() end
  1249. for z=1,math.random(2,3) do
  1250. local asdf = math.random(-5,5)*10-(i/20)*12
  1251. local Part1 = Instance.new("Part")
  1252. local mesh2 = Instance.new("SpecialMesh",Part1)
  1253. mesh2.MeshType = Enum.MeshType.Sphere
  1254. mesh2.Scale = Vector3.new(0,0,0)
  1255. Part1.Material = Enum.Material.Neon
  1256. Part1.CanCollide = false
  1257. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  1258. Part1.Parent = DebrisModel
  1259. Part1.Size = Vector3.new(asdf,asdf,asdf)
  1260. Part1.Anchored = true
  1261. local a = i*5
  1262. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-30,30),math.random(-2,2)*a))
  1263. Part1.Name = "EXPLOSION4"
  1264. end
  1265. end
  1266.  
  1267. end
  1268. end)
  1269. end))
  1270. end
  1271.  
  1272. holdq = false
  1273. holdr = false
  1274. cooldownult = false
  1275.  
  1276. mouse.KeyDown:connect(function(key)
  1277. if debounce == false then
  1278. if key == "e" then
  1279. dashasdf()
  1280. elseif key == "r" and cooldownult == false then
  1281. cooldownult = true
  1282. if animid == 0 then
  1283. animid = 1
  1284. else
  1285. animid = 0
  1286. end
  1287. debounce = true
  1288. holdr = true
  1289. aiming_anim = true
  1290. wait(0.2)
  1291. repeat
  1292. rs:wait()
  1293. timer = 150
  1294. until holdr == false
  1295. nukewelpo()
  1296.  
  1297. local Position = mouse.Hit.p
  1298. local Target = root.Position
  1299. local direction = Target - Position
  1300. local direction = computeDirection(direction)
  1301. root.Velocity = direction * 300
  1302.  
  1303. aiming_anim = false
  1304. delay(5,function() cooldownult = false end)
  1305. delay(1,function() debounce = false end)
  1306.  
  1307. elseif key == "q" then
  1308. debounce = true
  1309. if animid == 0 then
  1310. animid = 1
  1311. else
  1312. animid = 0
  1313. end
  1314. holdq = true
  1315. attack = true
  1316. aiming_anim = true
  1317. repeat rs:wait() timer = 150 until holdq == false
  1318. laz0r()
  1319. attack = false
  1320. end
  1321. end
  1322. end)
  1323.  
  1324. mouse.KeyUp:connect(function(key)
  1325. if key == "q" then
  1326. holdq = false
  1327. elseif key == "r" then
  1328. holdr = false
  1329. end
  1330. end)
  1331.  
  1332. ----------------------------------------------------------------------------
  1333. music(themeid,themepitch)
  1334. velocityYFall=0
  1335. velocityYFall2=0
  1336. velocityYFall3=0
  1337. velocityYFall4=0
  1338. neckrotY=0
  1339. neckrotY2=0
  1340. torsorotY=0
  1341. torsorotY2=0
  1342. torsoY=0
  1343. torsoY2=0
  1344. sine = 0
  1345. newWeld(torso, larm, -1.5, 0.5, 0)
  1346. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1347. newWeld(torso, rarm, 1.5, 0.5, 0)
  1348. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1349. newWeld(torso, hed, 0, 1.5, 0)
  1350. newWeld(torso, lleg, -0.5, -1, 0)
  1351. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  1352. newWeld(torso, rleg, 0.5, -1, 0)
  1353. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  1354. newWeld(root, torso, 0, -1, 0)
  1355. torso.Weld.C1 = CFrame.new(0, -1, 0)
  1356.  
  1357. rs:connect(function()
  1358.  
  1359. bg.MaxTorque = Vector3.new(0,0,0)
  1360.  
  1361. for i,v in pairs(DebrisModel:GetChildren()) do
  1362.  
  1363.  
  1364. if v.Name == "EXPLOSION" then
  1365. local change = 0.04-(v.Transparency*0.02)
  1366. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1367. vm.Scale = vm.Scale + Vector3.new(change,change,change)
  1368. v.Transparency = v.Transparency + 0.02
  1369. if v.Transparency >= 1 then
  1370. v:Destroy()
  1371. end
  1372.  
  1373. elseif v.Name == "EXPLOSION2" then
  1374. local change = 0.04-(v.Transparency*0.04)
  1375. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1376. vm.Scale = vm.Scale + Vector3.new(change,change,0)
  1377. v.Transparency = v.Transparency + 0.025
  1378. if v.Transparency >= 1 then
  1379. v:Destroy()
  1380. end
  1381.  
  1382. elseif v.Name == "EXPLOSION3" then
  1383. local change = 0.5-(v.Transparency*0.5)
  1384. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1385. vm.Scale = vm.Scale + Vector3.new(change,change,0)
  1386. v.Transparency = v.Transparency + 0.1
  1387. if v.Transparency >= 1 then
  1388. v:Destroy()
  1389. end
  1390.  
  1391. elseif v.Name == "EXPLOSION4" then
  1392. local change = 0.15-(v.Transparency*0.125)
  1393. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1394. vm.Scale = vm.Scale + Vector3.new(change,change,change)
  1395. v.Transparency = v.Transparency + 0.01
  1396. if v.Transparency >= 1 then
  1397. v:Destroy()
  1398. end
  1399.  
  1400. elseif v.Name == "SMOKE" then
  1401. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1402. vm.Scale = vm.Scale - Vector3.new(0.075,0.075,0.075)
  1403. if vm.Scale.X <= 0 then
  1404. v:Destroy()
  1405. end
  1406.  
  1407. elseif v.Name == "SMOKE2" then
  1408. local change = 2-(v.Transparency*2)
  1409. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1410. local Position = nil
  1411. if animid == 0 then
  1412. Position = larm.Position
  1413. else
  1414. Position = rarm.Position
  1415. end
  1416. local Target = mouse.Hit.p
  1417. local direction = Target - Position
  1418. local direction = computeDirection(direction)
  1419. local ray = Ray.new(Position, (Target-Position).unit*1048)
  1420. local part, endPoint = workspace:FindPartOnRay(ray, char)
  1421. vm.Scale = Vector3.new(vm.Scale.X,(Position-endPoint).magnitude,vm.Scale.Z) + Vector3.new(change,0,change)
  1422. local pos = Position + (direction * (vm.Scale.Y/2))
  1423. v.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  1424. vm.Offset = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,0)
  1425. v.Transparency = v.Transparency + 0.1
  1426. if v.Transparency >= 1 then
  1427. v:Destroy()
  1428. end
  1429.  
  1430.  
  1431. elseif v.Name == "LIGHTNING" then
  1432. local vm = v:FindFirstChildOfClass("BlockMesh")
  1433. vm.Scale = vm.Scale - Vector3.new(0.1,0.1,0)
  1434. if vm.Scale.X <= 0 then
  1435. v:Destroy()
  1436. end
  1437.  
  1438. end
  1439. end
  1440.  
  1441. if -root.Velocity.Y/1.5 > 0 and -root.Velocity.Y/1.5 < 160 then
  1442. velocityYFall = root.Velocity.Y/1.5
  1443. end
  1444. if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then
  1445. velocityYFall2 = root.Velocity.Y/180
  1446. end
  1447. if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then
  1448. velocityYFall3 = root.Velocity.Y/1.5
  1449. end
  1450. if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then
  1451. velocityYFall4 = root.Velocity.Y/1.5
  1452. end
  1453. if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then
  1454. neckrotY = root.RotVelocity.Y/6
  1455. end
  1456. if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then
  1457. neckrotY2 = root.RotVelocity.Y/8
  1458. end
  1459.  
  1460. if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then
  1461. torsorotY = root.RotVelocity.Y/6
  1462. end
  1463. if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then
  1464. torsorotY2 = root.RotVelocity.Y/8
  1465. end
  1466.  
  1467.  
  1468. torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20
  1469. torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36
  1470.  
  1471. if attack == true then
  1472. hum.WalkSpeed = 1
  1473. else
  1474. hum.WalkSpeed = 10
  1475. end
  1476.  
  1477. if canjump == true then
  1478. hum.JumpPower = 50
  1479. else
  1480. hum.JumpPower = 0
  1481. end
  1482.  
  1483. local jumped = false
  1484. local ray1 = Ray.new(root.Position+Vector3.new(1,0,0),Vector3.new(0, -6, 0))
  1485. local part1, endPoint = workspace:FindPartOnRay(ray1, char)
  1486. local ray2 = Ray.new(root.Position-Vector3.new(1,0,0),Vector3.new(0, -6, 0))
  1487. local part2, endPoint = workspace:FindPartOnRay(ray2, char)
  1488. local ray3 = Ray.new(root.Position+Vector3.new(0,0,0.5),Vector3.new(0, -6, 0))
  1489. local part3, endPoint = workspace:FindPartOnRay(ray3, char)
  1490. local ray4 = Ray.new(root.Position-Vector3.new(0,0,0.5),Vector3.new(0, -6, 0))
  1491. local part4, endPoint = workspace:FindPartOnRay(ray4, char)
  1492.  
  1493. if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end
  1494.  
  1495. local rlegray = Ray.new(rleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0))
  1496. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
  1497.  
  1498. local llegray = Ray.new(lleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0))
  1499. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  1500.  
  1501. if no_anim == false then
  1502. if hum.Health > 0 then
  1503. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then
  1504. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1)
  1505. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-10),0,0),0.1)
  1506. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62-(movement/30)*math.cos(sine/4)/2,(movement/50)*math.cos(sine/4))*CFrame.Angles(math.rad(-5-(movement*2)*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  1507. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+(movement/30)*math.cos(sine/4)/2,-(movement/50)*math.cos(sine/4))*CFrame.Angles(math.rad(-5+(movement*2)*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  1508. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+(movement/20)*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-(change*20)-4*math.cos(sine/2)), torsorotY2+math.rad(0-4*math.cos(sine/4)), torsorotY2+math.rad(0-1*math.cos(sine/4))), 0.1)
  1509. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.85-(movement/10)*math.cos(sine/4)/2,-0.1+(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)-movement*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  1510. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.85+(movement/10)*math.cos(sine/4)/2,-0.1-(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)+movement*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  1511. elseif jumped == true then
  1512. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1)
  1513. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0),0.1)
  1514. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,1-0.1*math.cos(sine/16)/2,0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(-50-1*math.cos(sine/8))), 0.2)
  1515. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,1-0.1*math.cos(sine/16)/2,0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(50+1*math.cos(sine/8))), 0.2)
  1516. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1)
  1517. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.925+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(-35-1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(-2-0.5*math.cos(sine/8))), 0.2)
  1518. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,0+0.1*math.cos(sine/16),-0.8)*CFrame.Angles(math.rad(-25+1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(2+0.5*math.cos(sine/8))), 0.2)
  1519. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5 then
  1520. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1)
  1521. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-15),0,0),0.1)
  1522. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(-5-1*math.cos(sine/8))), 0.2)
  1523. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(5+1*math.cos(sine/8))), 0.2)
  1524. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1)
  1525. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0,llegendPoint.Y-lleg.Position.Y,0)*CFrame.new(-0.5,0+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(0-1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(-2-0.5*math.cos(sine/8))), 0.2)
  1526. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0,rlegendPoint.Y-rleg.Position.Y,0)*CFrame.new(0.5,0+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(0+1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(2+0.5*math.cos(sine/8))), 0.2)
  1527. end
  1528. for i=1,5 do
  1529. if aiming_anim == true then
  1530. bg.MaxTorque = Vector3.new(9e9,9e9,9e9)
  1531. if jumped == false then
  1532. bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
  1533. else
  1534. bg.CFrame = CFrame.new(root.Position,mouse.Hit.p)
  1535. end
  1536. if animid == 0 then
  1537. hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(-80),0),0.4)
  1538. torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(-80), math.rad(0-1*math.cos(sine/32))),0.2)
  1539. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(-10-1*math.cos(sine/16)),math.rad(-90-1*math.cos(sine/8))),0.4)
  1540. else
  1541. hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(80),0),0.4)
  1542. torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(80), math.rad(0-1*math.cos(sine/32))),0.2)
  1543. rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(10-1*math.cos(sine/16)),math.rad(90+1*math.cos(sine/8))),0.4)
  1544. end
  1545. else
  1546. if timer <= 0 then
  1547. animid = math.random(0,1)
  1548. else
  1549. timer = timer - 1
  1550. end
  1551. end
  1552. end
  1553. end
  1554. end
  1555. main_color = Color3.fromRGB(main.r,main.g,main.b)
  1556. pr.Value = main.r
  1557. pg.Value = main.g
  1558. pb.Value = main.b
  1559. pv.Value = main.v
  1560. idth.Value = themeid
  1561. pith.Value = themepitch
  1562. HName.TextStrokeColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v/2)
  1563. HName.TextColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v)
  1564. sine = sine + change
  1565. if hum.Health <= 0 then
  1566. debounce = true
  1567. end
  1568. end)
  1569.  
  1570.  
  1571.  
  1572. --Extras--
  1573. q = char:GetChildren()
  1574. for u = 1, #q do
  1575. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  1576. q[u]:remove()
  1577. elseif q[u].ClassName == "CharacterMesh" then
  1578. q[u]:remove()
  1579. elseif q[u].ClassName == "ShirtGraphic" then
  1580. q[u]:remove()
  1581. elseif q[u].ClassName == "Shirt" then
  1582. q[u]:Destroy()
  1583. elseif q[u].ClassName == "Pants" then
  1584. q[u]:Destroy()
  1585. end
  1586. end
  1587. local top = Instance.new("Shirt")
  1588. top.ShirtTemplate = "rbxassetid://259122117"
  1589. top.Parent = char
  1590. local bottom = Instance.new("Pants")
  1591. bottom.PantsTemplate = "rbxassetid://227915108"
  1592. bottom.Parent = char
  1593. v3 = Vector3.new
  1594. bc = BrickColor.new
  1595. local Hair = Instance.new("Part",char)
  1596. Hair.Size = Vector3.new(1,1,1)
  1597. Hair.Material = "SmoothPlastic"
  1598. Hair.BrickColor = BrickColor.new("Royal purple")
  1599. Hair.CanCollide = false
  1600. local Hair2 = Instance.new("SpecialMesh",Hair)
  1601. Hair2.MeshId = "rbxassetid://430343527"
  1602. Hair2.Scale = Vector3.new(6.5,6.5,6.5)
  1603. local Hair3 = Instance.new("Weld",Hair)
  1604. Hair3.Part0 = char.Head
  1605. Hair3.Part1 = Hair
  1606. Hair3.C0 = CFrame.new(0.1,0.65,0.25)for i,v in pairs(char:children()) do
  1607. if v:IsA("Hat") then
  1608. v:Destroy()
  1609. end
  1610. end
  1611. for i,v in pairs(char:children()) do
  1612. if v:IsA("Accessory") then
  1613. v:Destroy()
  1614. end
  1615. end
  1616. for i,v in pairs(char:children()) do
  1617. if v:IsA("Hair") then
  1618. v:Destroy()
  1619. end
  1620. end
  1621.  
  1622. local BodyColors = char:FindFirstChildOfClass"BodyColors"
  1623. if BodyColors then
  1624. BodyColors.HeadColor = BrickColor.new"White"
  1625. BodyColors.TorsoColor = BrickColor.new"White"
  1626. BodyColors.LeftArmColor = BrickColor.new"White"
  1627. BodyColors.RightArmColor = BrickColor.new"White"
  1628. BodyColors.LeftLegColor = BrickColor.new"White"
  1629. BodyColors.RightLegColor = BrickColor.new"White"
  1630. end
  1631.  
  1632.  
  1633. --extras
  1634. local talksound = Instance.new("Sound",char.Torso)
  1635. talksound.SoundId = "rbxassetid://928210219"
  1636. talksound.Volume = 4.5
  1637. local blastsound = Instance.new("Sound",char.Torso)
  1638. blastsound.Name = "blast_sound"
  1639. blastsound.SoundId = "rbxassetid://345052019"
  1640. blastsound.Volume = 4.5
  1641. function swait(num)
  1642. if num==0 or num==nil then
  1643. game:service'RunService'.Stepped:wait(0)
  1644. else
  1645. for i=0,num do
  1646. game:service'RunService'.Stepped:wait(0)
  1647. end
  1648. end
  1649. end
  1650.  
  1651. function chatfunc(text)
  1652. local chat = coroutine.wrap(function()
  1653. if char:FindFirstChild("TalkingBillBoard") ~= nil then
  1654. char:FindFirstChild("TalkingBillBoard"):Destroy()
  1655. end
  1656. local naeeym2 = Instance.new("BillboardGui",char)
  1657. naeeym2.Size = UDim2.new(0,100,0,40)
  1658. naeeym2.StudsOffset = Vector3.new(0,3,0)
  1659. naeeym2.Adornee = char.Head
  1660. naeeym2.Name = "TalkingBillBoard"
  1661. local tecks2 = Instance.new("TextLabel",naeeym2)
  1662. tecks2.BackgroundTransparency = 1
  1663. tecks2.BorderSizePixel = 0
  1664. tecks2.Text = ""
  1665. tecks2.Font = "Fantasy"
  1666. tecks2.TextSize = 30
  1667. tecks2.TextStrokeTransparency = 0
  1668. tecks2.TextColor3 = Color3.new(.6,0,0)
  1669. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  1670. tecks2.Size = UDim2.new(1,0,0.5,0)
  1671. local tecks3 = Instance.new("TextLabel",naeeym2)
  1672. tecks3.BackgroundTransparency = 1
  1673. tecks3.BorderSizePixel = 0
  1674. tecks3.Text = ""
  1675. tecks3.Font = "Fantasy"
  1676. tecks3.TextSize = 30
  1677. tecks3.TextStrokeTransparency = 0
  1678. tecks3.TextColor3 = Color3.new(0,0,0)
  1679. tecks3.TextStrokeColor3 = Color3.new(1,1,1)
  1680. tecks3.Size = UDim2.new(1,0,0.5,0)
  1681. for i = 1,string.len(text),1 do
  1682. tecks2.Text = string.sub(text,1,i)
  1683. tecks3.Text = string.sub(text,1,i)
  1684. tecks3.Text = string.sub(text,1,i)
  1685. talksound:Play()
  1686. wait(0.01)
  1687. end
  1688. wait(2)
  1689. for i = 1, 50 do
  1690. swait()
  1691. tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  1692. tecks2.Rotation = tecks2.Rotation - .8
  1693. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  1694. tecks2.TextTransparency = tecks2.TextTransparency + .04
  1695. tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  1696. tecks3.Rotation = tecks2.Rotation + .8
  1697. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  1698. tecks3.TextTransparency = tecks2.TextTransparency + .04
  1699. end
  1700. naeeym2:Destroy()
  1701. end)
  1702. chat()
  1703. end
  1704. function onChatted(msg)
  1705. chatfunc(msg)
  1706. end
  1707. plr.Chatted:connect(onChatted)
  1708. wait(2)
  1709. chatfunc("Hmph.")
  1710. wait(2)
  1711. chatfunc("Ur still ALIVE?")
  1712. wait(2)
  1713. chatfunc("I guess I have ur Determined.")
  1714. wait(2)
  1715. chatfunc("Alright.")
  1716. wait(2)
  1717. chatfunc("I GUESS I HAVE GEt SERIOUS!")
  1718. wait(0.5)
  1719. char.Humanoid.Name = "Sans"
  1720.  
  1721. --chat
  1722.  
  1723. function Blast(AAA)
  1724. if AAA == "f" then
  1725. local chatmath = math.random(1,3)
  1726. if chatmath == 1 then
  1727. chatfunc("I'm done!")
  1728. end
  1729. if chatmath == 2 then
  1730. chatfunc("This is what you get for killing everybody!")
  1731. end
  1732. if chatmath == 3 then
  1733. chatfunc("Look, I tried to save u a long time ago.")
  1734. end
  1735. local gasterblaster = Instance.new("Part",char.Torso)
  1736. gasterblaster.Size = Vector3.new(7, 16, 4)
  1737. gasterblaster.CanCollide = false
  1738. local gasterblastermesh = Instance.new("FileMesh",gasterblaster)
  1739. gasterblastermesh.MeshId = "rbxassetid://431908407"
  1740. gasterblastermesh.Scale = Vector3.new(0.05,0.05,0.05)
  1741. local gasterblastertexture = Instance.new("Decal",gasterblaster)
  1742. gasterblastertexture.Face = "Back"
  1743. gasterblastertexture.Texture = "http://www.roblox.com/asset/?id=441975828"
  1744. local weeld = Instance.new("Weld",gasterblaster)
  1745. weeld.Part0 = gasterblaster
  1746. weeld.Part1 = char.Torso
  1747. weeld.C0 = CFrame.new(3.71674585, -11.54426, -0.129204988, -0.999741375, 0, 0.0227420069, 0, 1, 0, -0.0227420069, 0, -0.999741375)
  1748. blastsound:Play()
  1749. char.Head.Anchored = true
  1750. wait(1)
  1751. local blast = Instance.new("Part",gasterblaster)
  1752. blast.Size = Vector3.new(18.07, 16.36, 73.54)
  1753. blast.Transparency = 0.7
  1754. blast.Material = "Neon"
  1755. blast.Color = Color3.new(1,1,1)
  1756. blast.CanCollide = true
  1757. local blastweld = Instance.new("Weld",blast)
  1758. blastweld.Part0 = blast
  1759. blastweld.Part1 = gasterblaster
  1760. blastweld.C0 = CFrame.new(-0.430000305, 1.73999977, -40.1399994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1761. blast.Touched:connect(function(part)
  1762. part.Parent:FindFirstChildOfClass("Humanoid"):Destroy() -- Makes them not able to move
  1763. end)
  1764. wait(2)
  1765. char.Head.Anchored = false
  1766. blast:Destroy()
  1767. gasterblaster:Destroy()
  1768. end
  1769. end
  1770. mouse.KeyDown:connect(Blast)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement