Tetezaza1542

dddd

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