Advertisement
Ban43_GodOfEdits

testing 3

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