Advertisement
Silver_cole

Whos zening?

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