carlosname

Untitled

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