leelandshoe

Untitled

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