Advertisement
aaaay63746

Untitled

Sep 26th, 2020
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 62.07 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local mouse = plr:GetMouse()
  3. local char = plr.Character
  4. local state = "Idle"
  5. local transformed = false
  6. local mute = false
  7. local canusemoves = true
  8. local particles = true
  9. local run = game:GetService("RunService")
  10. local hum = char:FindFirstChildOfClass("Humanoid")
  11. wait(.5)
  12.  
  13. --FUNCTIONS
  14. local function sound(parent,id,vol,des)
  15. local s = Instance.new("Sound",parent)
  16. s.SoundId = "rbxassetid://"..id
  17. s.Volume = vol
  18. s.PlayOnRemove = des
  19. if des == true then
  20. s:Play()
  21. elseif des == false then
  22. s:Play()
  23. end
  24. return s
  25. end
  26. local function part(parent,col,mat,tran,anch,cancol,size,shad,pos)
  27. local p = Instance.new("Part",parent)
  28. p.Color = col
  29. p.Material = mat
  30. p.Transparency = tran
  31. p.Anchored = anch
  32. p.CanCollide = cancol
  33. p.Size = size
  34. p.CastShadow = shad
  35. p.CFrame = pos
  36. return p
  37. end
  38. local function mesh(parent,id,text,scale,shape)
  39. local m = Instance.new("SpecialMesh",parent)
  40. if id ~= 0 then
  41. m.MeshId = "rbxassetid://"..id
  42. end
  43. if text ~= 0 then
  44. m.TextureId = "rbxassetid://"..text
  45. end
  46. m.Scale = scale
  47. m.MeshType = shape
  48. return m
  49. end
  50. local function dmg(touch,dmg,cd,name)
  51. func = touch.Touched:Connect(function(hit)
  52. if hit.Parent:FindFirstChild("Humanoid") then
  53. if hit.Parent == char then return end
  54. if hit.Parent:FindFirstChild(name) then return end
  55. local val = Instance.new("IntValue",hit.Parent)
  56. val.Name = name
  57. game.Debris:AddItem(val,cd)
  58. hit.Parent.Humanoid:TakeDamage(dmg)
  59. end
  60. end)
  61. return func
  62. end
  63. local function cleanup()
  64. for i,child in pairs(char:GetChildren()) do
  65. if child.Name == "Particle" then
  66. child:Destroy()
  67. end
  68. end
  69. end
  70. --END OF FUNCTIONS
  71.  
  72. --CHARACTER SETTUP
  73. local function cweld(p,p0,p1,c0,c1,n)
  74. local weld = Instance.new("Weld",p)
  75. weld.Part0 = p0
  76. weld.Part1 = p1
  77. weld.C0 = c0
  78. weld.C1 = c1
  79. weld.Name = n
  80. end
  81. char.Animate:Destroy()
  82. cweld(char.HumanoidRootPart,char.HumanoidRootPart,char.Torso,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00900000334, 0, 0, 0.999075651, 0, 0.042986989, 0, 1, 0, -0.042986989, 0, 0.999075651) ,"Torso")
  83. cweld(char.Torso,char.Torso,char.Head,CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, -0.0430000015, 1, 0, 0, 0, 0.996217906, 0.0868901834, 0, -0.0868901834, 0.996217906) ,"Head")
  84. cweld(char.Torso,char.Torso,char["Left Arm"],CFrame.new(-1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.461000025, 0.55400002, -0.138999999, 0.637414873, 0.770431399, -0.0117421225, -0.72914505, 0.59818989, -0.33243987, -0.249098092, 0.220463797, 0.943051398) ,"Left Arm")
  85. cweld(char.Torso,char.Torso,char["Right Arm"],CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.435000002, 0.564999998, -0.197999999, 0.631951034, -0.768613815, 0.0993518978, 0.743860662, 0.565570116, -0.356092572, 0.217507169, 0.298936963, 0.929154098) ,"Right Arm")
  86. cweld(char.Torso,char.Torso,char["Left Leg"],CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 0.981969237, 0, -0.189040929, 0, 1, 0, 0.189040929, 0, 0.981969237) ,"Left Leg")
  87. cweld(char.Torso,char.Torso,char["Right Leg"],CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 0.987799048, 0, 0.155733824, 0, 1, 0, -0.155733824, 0, 0.987799048) ,"Right Leg")
  88. Instance.new("ForceField",char).Visible = false
  89. local music = sound(char.Torso,385705841,1,false)
  90. music.Looped = true
  91. hum.MaxHealth = "inf"
  92. hum.Health = "inf"
  93. hum.Name = "Hahahahaha"
  94. local function overhead()
  95. local gui = Instance.new("BillboardGui",char.Head)
  96. gui.Size = UDim2.new(1,0,1,0)
  97. gui.ClipsDescendants = false
  98. gui.ExtentsOffsetWorldSpace = Vector3.new(0,3,0)
  99. gui.LightInfluence = 0
  100. local t = Instance.new("TextLabel",gui)
  101. t.Text = "SANS"
  102. t.BackgroundTransparency = 1
  103. t.AnchorPoint = Vector2.new(0.4,0.4)
  104. t.Size = UDim2.new(5,0,2,0)
  105. t.Font = Enum.Font.Cartoon
  106. t.TextStrokeTransparency = 0
  107. t.TextScaled = true
  108. t.TextColor3 = Color3.new(0, 255, 255)
  109. t.TextStrokeColor3 = Color3.new(0, 0, 127)
  110. coroutine.resume(coroutine.create(function()
  111. while run.RenderStepped:Wait() do
  112. repeat wait() t.Rotation = t.Rotation + .4 until t.Rotation >= 10
  113. wait(.1)
  114. repeat wait() t.Rotation = t.Rotation - .4 until t.Rotation <= -10
  115. end
  116. end))
  117. end
  118. local function bones()
  119. local model = Instance.new("Model",char)
  120. model.Name = "Bones"
  121. local ribs = part(model,Color3.fromRGB(229,228,223),"Sand",1,false,false,Vector3.new(1.651, 0.646, 1.861),true,char.Torso.CFrame)
  122. mesh(ribs,927005023,0,Vector3.new(6,15,4),"FileMesh")
  123. cweld(char.Torso,char.Torso,ribs,CFrame.new(-0.00790643692, -0.0141243935, 0.501241684, 0.999074101, 0.0430011079, -0.00162736187, -0.00116837048, -0.010694542, -0.999942541, -0.0430155098, 0.999018192, -0.0106340926),CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"Ribs")
  124.  
  125. local LBone1 = part(model,Color3.fromRGB(229,228,223),"Sand",1,false,false,Vector3.new(1.493, 0.919, 2.59),true,char.Torso.CFrame)
  126. LBone1.Name = "LBone1"
  127. mesh(LBone1,523610338,0,Vector3.new(0.015, 0.015, 0.015),"FileMesh")
  128. cweld(char.Torso,ribs,LBone1,CFrame.new(-1.16618395, 0.497213364, -0.639540195, 0.199026987, -0.322882175, -0.925275981, -0.796553135, -0.603297353, 0.0391863845, -0.570869148, 0.729232192, -0.377265185),CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"LBone1")
  129.  
  130. local LBone2 = part(model,Color3.fromRGB(229,228,223),"Sand",1,false,false,Vector3.new(0.518, 1.229, 2.159),true,char.Torso.CFrame)
  131. LBone1.Name = "LBone2"
  132. mesh(LBone2,523623357,0,Vector3.new(0.008, 0.008, 0.008),"FileMesh")
  133. cweld(char.Torso,LBone1,LBone2,CFrame.new(-0.0530033112, 0.803726196, 0.838523865, 0.341374874, 0.938376546, -0.0539709628, 0.182849452, -0.00997671485, 0.983090401, 0.921970367, -0.345470816, -0.17498742),CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"LBone2")
  134.  
  135. local LHand = part(model,Color3.fromRGB(229,228,223),"Sand",1,false,false,Vector3.new(0.322, 0.828, 1.612),true,char.Torso.CFrame)
  136. LHand.Name = "LBoneHand"
  137. mesh(LHand,523652560,0,Vector3.new(0.008, 0.008, 0.008),"FileMesh")
  138. cweld(char.Torso,LBone2,LHand,CFrame.new(0.187120438, 0.119449615, 1.7151432, 0.962244809, 0.164886326, 0.216558546, -0.0335276872, 0.861371517, -0.506867826, -0.270112962, 0.48047021, 0.834378541),CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"LBoneHand")
  139.  
  140. local RBone1 = part(model,Color3.fromRGB(229,228,223),"Sand",1,false,false,Vector3.new(1.493, 0.919, 2.59),true,char.Torso.CFrame)
  141. RBone1.Name = "RBone1"
  142. mesh(RBone1,523610338,0,Vector3.new(0.015, 0.015, 0.015),"FileMesh")
  143. cweld(char.Torso,ribs,RBone1,CFrame.new(1.23084211, 0.486703873, -0.621464252, -0.415073842, 0.286642849, 0.863452196, 0.623770773, -0.601219833, 0.499444395, 0.662286758, 0.745902479, 0.0707512125),CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"RBone1")
  144.  
  145. local RBone2 = part(model,Color3.fromRGB(229,228,223),"Sand",1,false,false,Vector3.new(0.518, 1.229, 2.159),true,char.Torso.CFrame)
  146. RBone2.Name = "RBone2"
  147. mesh(RBone2,523622115,0,Vector3.new(0.008, 0.008, 0.008),"FileMesh")
  148. cweld(char.Torso,RBone1,RBone2,CFrame.new(-0.379526138, 0.772985458, 0.828954697, 0.788434148, -0.60477227, 0.112348527, -0.0976656675, 0.0572500527, 0.993571281, -0.607316375, -0.794338107, -0.0139275491),CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"RBone2")
  149.  
  150. local RHand = part(model,Color3.fromRGB(229,228,223),"Sand",1,false,false,Vector3.new(0.322, 0.828, 1.612),true,char.Torso.CFrame)
  151. RHand.Name = "RBonehand"
  152. mesh(RHand,523653454,0,Vector3.new(0.008, 0.008, 0.008),"FileMesh")
  153. cweld(char.Torso,RBone2,RHand,CFrame.new(-0.18693161, 0.119625092, 1.71515656, 0.962295592, -0.164773092, -0.216418758, 0.0334875211, 0.861353457, -0.506901324, 0.26993674, 0.480541617, 0.834394515),CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"RBoneHand")
  154.  
  155. end
  156. overhead()
  157. bones()
  158. --END OF CHARACTER SETTUP
  159.  
  160. --MOVES
  161. local function teleport()
  162. local ray = nil
  163. if transformed == false then
  164. ray = Ray.new(char.Torso.CFrame.p, (mouse.Hit.p - char.Torso.CFrame.p).unit * 100)
  165. elseif transformed == true then
  166. ray = Ray.new(char.Torso.CFrame.p, (mouse.Hit.p - char.Torso.CFrame.p).unit * 500)
  167. end
  168. local part, pos = workspace:FindPartOnRay(ray, char, false, true)
  169. char.HumanoidRootPart.CFrame = CFrame.new(pos.X,pos.Y,pos.Z) * CFrame.new(0,2,0)
  170. sound(char.Torso,289556450,1,false)
  171. local function part()
  172. local p = Instance.new("Part",char)
  173. local s = math.random(.25,2)
  174. p.Size = Vector3.new(s,s,s)
  175. p.BrickColor = BrickColor.new("Baby blue")
  176. p.Material = Enum.Material.Neon
  177. p.CanCollide = false
  178. p.CFrame = char.HumanoidRootPart.CFrame
  179. p.Orientation = Vector3.new(math.random(-359,359),math.random(-359,359),math.random(-359,359))
  180. p.Name = "Particle"
  181. local vel = Instance.new("BodyVelocity",p)
  182. vel.MaxForce = Vector3.new(1/0,1/0,1/0)
  183. vel.Velocity = p.CFrame.LookVector * 20 * 2
  184. coroutine.resume(coroutine.create(function()
  185. for i = 1,50 do
  186. if not p then break end
  187. p.Size = p.Size - Vector3.new(0.05,0.05,0.05)
  188. wait()
  189. end
  190. p:Destroy()
  191. end))
  192. end
  193. for i = 1,35 do
  194. if particles == false then break end
  195. part()
  196. end
  197. end
  198. local function blaster()
  199. canusemoves = false
  200. local blaster = part(char,Color3.new(163, 162, 165),"Plastic",1,true,false,Vector3.new(1,1,1),false,char.Torso.CFrame * CFrame.new(10,1,0))
  201. mesh(blaster,431908407,441975828,Vector3.new(.05,.05,.05),Enum.MeshType.FileMesh)
  202. sound(char.Torso,422747271,1,false)
  203. for i = 1,15,.5 do
  204. blaster.CFrame = blaster.CFrame:Lerp(char.HumanoidRootPart.CFrame * CFrame.Angles(0,math.rad(180),0) * CFrame.new(0,1,5),i/15)
  205. blaster.Transparency = blaster.Transparency - .1
  206. wait()
  207. end
  208. sound(char.Torso,340722848,1,false)
  209. local beam = part(char,Color3.fromRGB(248, 248, 248),"Neon",0,true,false,Vector3.new(0,0,0),false,blaster.CFrame * CFrame.new(0,-2,3))
  210. local beamm = mesh(beam,0,0,Vector3.new(1,1,1),Enum.MeshType.Sphere)
  211. local beam2 = beam:Clone()
  212. beam2.Transparency = .5
  213. beam2.Parent = char
  214. beam2.Color = Color3.fromRGB(0, 168, 168)
  215. local function part()
  216. if particles == false then return end
  217. local p = Instance.new("Part",char)
  218. local s = math.random(.25,2)
  219. p.Size = Vector3.new(s,s,s)
  220. p.BrickColor = BrickColor.new("Baby blue")
  221. p.Material = Enum.Material.Neon
  222. p.CanCollide = false
  223. p.CFrame = blaster.CFrame * CFrame.new(0,-2,3) * CFrame.Angles(0,math.rad(180),0)
  224. p.Orientation = p.Orientation + Vector3.new(math.random(-15,15),math.random(-15,15),0)
  225. p.Name = "Particle"
  226. local vel = Instance.new("BodyVelocity",p)
  227. vel.MaxForce = Vector3.new(1/0,1/0,1/0)
  228. vel.Velocity = p.CFrame.LookVector * 20 * 2
  229. coroutine.resume(coroutine.create(function()
  230. for i = 1,100 do
  231. if not p then break end
  232. p.Size = p.Size - Vector3.new(0.02,0.02,0.02)
  233. wait()
  234. end
  235. p:Destroy()
  236. end))
  237. end
  238. touch = dmg(beam,50,.5,"SmallBlaster")
  239. for i = 1,10 do
  240. part()
  241. beam.CFrame = beam.CFrame:Lerp(blaster.CFrame * CFrame.new(0,-2,55),i/20)
  242. beam.Size = beam.Size:Lerp(Vector3.new(15,15,100),i/20)
  243. beam2.CFrame = beam2.CFrame:Lerp(blaster.CFrame * CFrame.new(0,-2,55),i/20)
  244. beam2.Size = beam2.Size:Lerp(Vector3.new(20,20,100),i/20)
  245. wait()
  246. end
  247. for i = 1,9 do
  248. beam.Size = beam.Size:Lerp(Vector3.new(0,0,100),i/10)
  249. beam2.Size = beam2.Size:Lerp(Vector3.new(0,0,100),i/10)
  250. blaster.CFrame = blaster.CFrame * CFrame.new(0,0,-1)
  251. blaster.Transparency = blaster.Transparency + .3
  252. wait()
  253. end
  254. touch:Disconnect()
  255. beam:Destroy()
  256. beam2:Destroy()
  257. blaster:Destroy()
  258. canusemoves = true
  259. end
  260. local function bigblaster()
  261. canusemoves = false
  262. local blaster = part(char,Color3.new(163, 162, 165),"Plastic",1,true,false,Vector3.new(1,1,1),false,char.Torso.CFrame * CFrame.new(10,1,0))
  263. mesh(blaster,431908407,441975828,Vector3.new(.1,.1,.1),Enum.MeshType.FileMesh)
  264. local s = sound(char.Torso,422747271,1,false)
  265. coroutine.resume(coroutine.create(function()
  266. wait(.2)
  267. s.PlaybackSpeed = .5
  268. end))
  269. for i = 1,15,.5 do
  270. blaster.CFrame = blaster.CFrame:Lerp(char.HumanoidRootPart.CFrame * CFrame.Angles(0,math.rad(180),0) * CFrame.new(0,4,10),i/30)
  271. blaster.Transparency = blaster.Transparency - .1
  272. wait()
  273. end
  274. local s1 = sound(char.Torso,340722848,1,false)
  275. s1.PlaybackSpeed = .5
  276. local beam = part(char,Color3.fromRGB(248, 248, 248),"Neon",0,true,false,Vector3.new(0,0,0),false,blaster.CFrame * CFrame.new(0,-5,5))
  277. local beamm = mesh(beam,0,0,Vector3.new(1,1,1),Enum.MeshType.Sphere)
  278. local beam2 = beam:Clone()
  279. beam2.Transparency = .5
  280. beam2.Parent = char
  281. beam2.Color = Color3.fromRGB(0, 168, 168)
  282. local function part()
  283. local p = Instance.new("Part",char)
  284. local s = math.random(.25,2)
  285. p.Size = Vector3.new(s,s,s)
  286. p.BrickColor = BrickColor.new("Baby blue")
  287. p.Material = Enum.Material.Neon
  288. p.CanCollide = false
  289. p.CFrame = blaster.CFrame * CFrame.new(0,-2,3) * CFrame.Angles(0,math.rad(180),0)
  290. p.Orientation = p.Orientation + Vector3.new(math.random(-30,30),math.random(-30,30),0)
  291. p.Name = "Particle"
  292. local vel = Instance.new("BodyVelocity",p)
  293. vel.MaxForce = Vector3.new(1/0,1/0,1/0)
  294. vel.Velocity = p.CFrame.LookVector * 20 * 2
  295. coroutine.resume(coroutine.create(function()
  296. for i = 1,100 do
  297. if not p then break end
  298. p.Size = p.Size - Vector3.new(0.02,0.02,0.02)
  299. wait()
  300. end
  301. p:Destroy()
  302. end))
  303. end
  304. coroutine.resume(coroutine.create(function()
  305. for i = 1,20 do
  306. if particles == false then break end
  307. part()
  308. end
  309. end))
  310. touch1 = dmg(beam,75,1,"BigBlaster")
  311. for i = 1,25 do
  312. beam.CFrame = beam.CFrame:Lerp(blaster.CFrame * CFrame.new(0,-5,160),i/50)
  313. beam.Size = beam.Size:Lerp(Vector3.new(50,50,300),i/50)
  314. beam2.CFrame = beam2.CFrame:Lerp(blaster.CFrame * CFrame.new(0,-5,160),i/50)
  315. beam2.Size = beam2.Size:Lerp(Vector3.new(70,70,300),i/50)
  316. wait()
  317. end
  318. for i = 1,9 do
  319. beam.Size = beam.Size:Lerp(Vector3.new(0,0,300),i/20)
  320. beam2.Size = beam2.Size:Lerp(Vector3.new(0,0,300),i/20)
  321. blaster.CFrame = blaster.CFrame * CFrame.new(0,0,-.5)
  322. blaster.Transparency = blaster.Transparency + .3
  323. wait()
  324. end
  325. touch1:Disconnect()
  326. beam:Destroy()
  327. beam2:Destroy()
  328. blaster:Destroy()
  329. canusemoves = true
  330. end
  331. local function doubleblaster()
  332. canusemoves = false
  333. local blaster = part(char,Color3.new(163, 162, 165),"Plastic",1,true,false,Vector3.new(1,1,1),false,char.Torso.CFrame * CFrame.new(10,1,0))
  334. local blaster1 = part(char,Color3.new(163, 162, 165),"Plastic",1,true,false,Vector3.new(1,1,1),false,char.Torso.CFrame * CFrame.new(-10,1,0))
  335. mesh(blaster,431908407,441975828,Vector3.new(.05,.05,.05),Enum.MeshType.FileMesh)
  336. mesh(blaster1,431908407,441975828,Vector3.new(.05,.05,.05),Enum.MeshType.FileMesh)
  337. sound(char.Torso,422747271,1,false)
  338. for i = 1,15,.5 do
  339. blaster.CFrame = blaster.CFrame:Lerp(char.HumanoidRootPart.CFrame * CFrame.Angles(0,math.rad(150),0) * CFrame.new(5,1,3),i/15)
  340. blaster.Transparency = blaster.Transparency - .1
  341. blaster1.CFrame = blaster1.CFrame:Lerp(char.HumanoidRootPart.CFrame * CFrame.Angles(0,math.rad(-150),0) * CFrame.new(-5,1,3),i/15)
  342. blaster1.Transparency = blaster1.Transparency - .1
  343. wait()
  344. end
  345. sound(char.Torso,340722848,1,false)
  346. local beam = part(char,Color3.fromRGB(248, 248, 248),"Neon",0,true,false,Vector3.new(0,0,0),false,blaster.CFrame * CFrame.new(0,-2,3))
  347. mesh(beam,0,0,Vector3.new(1,1,1),Enum.MeshType.Sphere)
  348. local beam2 = beam:Clone()
  349. beam2.Transparency = .5
  350. beam2.Parent = char
  351. beam2.Color = Color3.fromRGB(0, 168, 168)
  352. local beam1 = part(char,Color3.fromRGB(248, 248, 248),"Neon",0,true,false,Vector3.new(0,0,0),false,blaster1.CFrame * CFrame.new(0,-2,3))
  353. mesh(beam1,0,0,Vector3.new(1,1,1),Enum.MeshType.Sphere)
  354. local beam21 = beam1:Clone()
  355. beam21.Transparency = .5
  356. beam21.Parent = char
  357. beam21.Color = Color3.fromRGB(0, 168, 168)
  358. local function part()
  359. if particles == false then return end
  360. local p = Instance.new("Part",char)
  361. local s = math.random(.25,2)
  362. p.Size = Vector3.new(s,s,s)
  363. p.BrickColor = BrickColor.new("Baby blue")
  364. p.Material = Enum.Material.Neon
  365. p.CanCollide = false
  366. p.CFrame = blaster.CFrame * CFrame.new(0,-2,3) * CFrame.Angles(0,math.rad(180),0)
  367. p.Orientation = p.Orientation + Vector3.new(math.random(-15,15),math.random(-15,15),0)
  368. p.Name = "Particle"
  369. local vel = Instance.new("BodyVelocity",p)
  370. vel.MaxForce = Vector3.new(1/0,1/0,1/0)
  371. vel.Velocity = p.CFrame.LookVector * 20 * 2
  372. local p1 = p:Clone()
  373. p1.CFrame = blaster1.CFrame * CFrame.new(0,-2,3) * CFrame.Angles(0,math.rad(180),0)
  374. p1.Parent = char
  375. p1.Orientation = p1.Orientation + Vector3.new(math.random(-15,15),math.random(-15,15),0)
  376. p1.BodyVelocity.Velocity = p1.CFrame.LookVector * 20 * 2
  377. coroutine.resume(coroutine.create(function()
  378. for i = 1,100 do
  379. if not p or not p1 then break end
  380. p.Size = p.Size - Vector3.new(0.02,0.02,0.02)
  381. p1.Size = p1.Size - Vector3.new(0.02,0.02,0.02)
  382. wait()
  383. end
  384. p:Destroy()
  385. p1:Destroy()
  386. end))
  387. end
  388. touch = dmg(beam,25,1,"SmallBlaster0")
  389. touch1 = dmg(beam1,25,1,"SmallBlaster1")
  390. local r = .05
  391. for i = 1,40 do
  392. part()
  393. r = r - 0.001
  394. beam.CFrame = beam.CFrame:Lerp(blaster.CFrame * CFrame.new(0,-2,55),i/20)
  395. beam.Size = beam.Size:Lerp(Vector3.new(15,15,100),i/20)
  396. beam2.CFrame = beam2.CFrame:Lerp(blaster.CFrame * CFrame.new(0,-2,55),i/20)
  397. beam2.Size = beam2.Size:Lerp(Vector3.new(20,20,100),i/20)
  398. beam1.CFrame = beam1.CFrame:Lerp(blaster1.CFrame * CFrame.new(0,-2,55),i/20)
  399. beam1.Size = beam1.Size:Lerp(Vector3.new(15,15,100),i/20)
  400. beam21.CFrame = beam21.CFrame:Lerp(blaster1.CFrame * CFrame.new(0,-2,55),i/20)
  401. beam21.Size = beam21.Size:Lerp(Vector3.new(20,20,100),i/20)
  402. blaster.CFrame = blaster.CFrame * CFrame.fromEulerAnglesXYZ(0,r,0)
  403. blaster1.CFrame = blaster1.CFrame * CFrame.fromEulerAnglesXYZ(0,-r,0)
  404. wait()
  405. end
  406. for i = 1,9 do
  407. beam.Size = beam.Size:Lerp(Vector3.new(0,0,100),i/10)
  408. beam2.Size = beam2.Size:Lerp(Vector3.new(0,0,100),i/10)
  409. blaster.Transparency = blaster.Transparency + .3
  410. beam1.Size = beam1.Size:Lerp(Vector3.new(0,0,100),i/10)
  411. beam21.Size = beam21.Size:Lerp(Vector3.new(0,0,100),i/10)
  412. blaster1.Transparency = blaster1.Transparency + .3
  413. wait()
  414. end
  415. touch:Disconnect()
  416. touch1:Disconnect()
  417. beam:Destroy()
  418. beam2:Destroy()
  419. blaster:Destroy()
  420. beam1:Destroy()
  421. beam21:Destroy()
  422. blaster1:Destroy()
  423. canusemoves = true
  424. end
  425. local function slam()
  426. canusemoves = false
  427. hum.WalkSpeed = 0
  428. hum.JumpPower = 0
  429. state = "Slam"
  430. sound(char.Torso,422747271,1,false)
  431. for i = 1,10 do
  432. char.HumanoidRootPart["Torso"].C1 = char.HumanoidRootPart["Torso"].C1:Lerp(CFrame.new(0.00900000334, -2.02999997, 0, 0.999975502, 0, 0.00700038671, 0.00022397429, 0.999487996, -0.0319937542, -0.00699680252, 0.0319945365, 0.999463499),i/10)
  433. char.Torso["Head"].C1 = char.Torso["Head"].C1:Lerp(CFrame.new(-0.0419999994, 0.0559999943, -0.0670000017, 0.998878598, -0.0315804854, 0.0352746546, 0.0234628431, 0.97730118, 0.210551292, -0.0411232598, -0.209487528, 0.976946235),i/10)
  434. char.Torso["Left Arm"].C1 = char.Torso["Left Arm"].C1:Lerp(CFrame.new(0.135999992, -0.0999999791, -0.0259999633, 0.985586703, -0.16635856, 0.0307203233, 0.169170648, 0.968679905, -0.181770369, 0.000480890274, 0.184347436, 0.982861042),i/10)
  435. char.Torso["Right Arm"].C1 = char.Torso["Right Arm"].C1:Lerp(CFrame.new(-0.149999991, -0.00700002909, 0.382000029, 0.98718369, 0.14615038, -0.0640985891, -0.146712765, 0.989170492, -0.0041319374, 0.0628005564, 0.0134830177, 0.9979350),i/10)
  436. char.Torso["Left Leg"].C1 = char.Torso["Left Leg"].C1:Lerp(CFrame.new(0, -0.152999967, 0.111999989, 0.997798383, 0, -0.0663221478, -0.00359195331, 0.998532295, -0.0540399477, 0.0662248135, 0.0541591868, 0.996333957),i/10)
  437. char.Torso["Right Leg"].C1 = char.Torso["Right Leg"].C1:Lerp(CFrame.new(0.0169999972, -0.717000008, 0.82100004, 0.998718858, 0.0193810277, -0.0467441007, -0.0180600509, 0.99943012, 0.0285189077, 0.0472701006, -0.0276381224, 0.998499691),i/10)
  438. char.Torso["LBone1"].C1 = char.Torso["LBone1"].C1:Lerp(CFrame.new(0.0600000024, -0.826000094, -0.479000032, -0.51271683, -0.730166316, -0.45163998, 0.673558295, -0.0158858746, -0.738963425, 0.532391489, -0.683084846, 0.499954641),i/10)
  439. char.Torso["LBone2"].C1 = char.Torso["LBone2"].C1:Lerp(CFrame.new(-0.876000047, -0.75699991, -0.458000034, 0.136421055, -0.834542632, -0.533786356, 0.746706069, 0.440716326, -0.498195976, 0.65101409, -0.33061704, 0.683281124),i/10)
  440. char.Torso["LBoneHand"].C1 = char.Torso["LBoneHand"].C1:Lerp(CFrame.new(-0.11399997, -0.562000036, -0.0539999753, 0.981261909, 0.0675828531, -0.18043685, -0.192612544, 0.368530691, -0.909442365, 0.00503376126, 0.927155733, 0.374642432),i/10)
  441. char.Torso["RBone1"].C1 = char.Torso["RBone1"].C1:Lerp(CFrame.new(0.935000062, -0.461000025, -0.405000031, 0.090554446, 0.62391901, 0.776224971, -0.283739507, 0.763286531, -0.580418348, -0.95461607, -0.167686239, 0.246149689),i/10)
  442. char.Torso["RBone2"].C1 = char.Torso["RBone2"].C1:Lerp(CFrame.new(1.02900004, 0.07099998, -1.0150001, 0.0177954435, -0.0161824226, 0.999710679, -0.179183334, 0.983630061, 0.0191116855, -0.983654737, -0.179471597, 0.0146044604),i/10)
  443. char.Torso["RBoneHand"].C1 = char.Torso["RBoneHand"].C1:Lerp(CFrame.new(-0.14200002, -0.545000017, 0.0170000196, 0.0966487899, 0.854167461, -0.510937154, -0.962231338, -0.0510738641, -0.267399102, -0.254499167, 0.517483592, 0.816970527),i/10)
  444. wait()
  445. end
  446. for i = 1,10 do
  447. char.HumanoidRootPart["Torso"].C1 = char.HumanoidRootPart["Torso"].C1:Lerp(CFrame.new(0.00900000334, 1.05600011, 0, 0.999975502, 0, 0.00700038671, 0.00022397429, 0.999487996, -0.0319937542, -0.00699680252, 0.0319945365, 0.999463499),i/10)
  448. char.Torso["Head"].C1 = char.Torso["Head"].C1:Lerp(CFrame.new(-0.0419999994, -0.186000004, 0.143000007, 0.998878598, -0.0315804854, 0.0352746546, 0.0447090082, 0.874330401, -0.483267605, -0.0155798597, 0.4843027, 0.87476182),i/10)
  449. char.Torso["Left Arm"].C1 = char.Torso["Left Arm"].C1:Lerp(CFrame.new(0.135999992, -0.0999999791, -0.630999982, 0.985586703, -0.16635856, 0.0307203233, 0.152120054, 0.792060256, -0.591185272, 0.0740164146, 0.587337494, 0.805950582),i/10)
  450. char.Torso["Right Arm"].C1 = char.Torso["Right Arm"].C1:Lerp(CFrame.new(-0.149999991, 0.0909999683, -0.65199995, 0.98718369, 0.14615038, -0.0640985891, -0.144474119, 0.64781636, -0.747971416, -0.0677921474, 0.747645676, 0.660628617),i/10)
  451. char.Torso["Left Leg"].C1 = char.Torso["Left Leg"].C1:Lerp(CFrame.new(0, -0.805999994, 1.04100001, 0.997798383, 0, -0.0663221478, 0.00416324101, 0.998027802, 0.0626348108, 0.0661913604, -0.0627729967, 0.995830536),i/10)
  452. char.Torso["Right Leg"].C1 = char.Torso["Right Leg"].C1:Lerp(CFrame.new(0.0169999972, 0.638000011, -0.460999906, 0.998718858, 0.0193810277, -0.0467441007, -0.0471754856, 0.0224370956, -0.998634577, -0.0183057822, 0.999560475, 0.0233226717),i/10)
  453. char.Torso["LBone1"].C1 = char.Torso["LBone1"].C1:Lerp(CFrame.new(0.513999999, -0.71600008, -0.298000038, 0.629962683, -0.575505137, 0.521479607, 0.770724833, 0.380663067, -0.510958612, 0.0955512822, 0.723802149, 0.683359742),i/10)
  454. char.Torso["LBone2"].C1 = char.Torso["LBone2"].C1:Lerp(CFrame.new(0.870999932, 0.0630000532, -0.458000004, 0.189471468, 0.80221647, 0.566170752, -0.835029721, -0.171698242, 0.522728384, 0.516551852, -0.571811438, 0.637342691),i/10)
  455. char.Torso["LBoneHand"].C1 = char.Torso["LBoneHand"].C1:Lerp(CFrame.new(-0.11399997, -0.413000047, -0.0539999753, 0.915430188, -0.391597986, -0.0929440707, 0.298556596, 0.81557703, -0.495679259, 0.269910038, 0.426010758, 0.863518),i/10)
  456. char.Torso["RBone1"].C1 = char.Torso["RBone1"].C1:Lerp(CFrame.new(0.674000025, -0.461000025, -0.405000031, 0.507013023, -0.676508069, 0.534110904, 0.858998537, 0.345444977, -0.37787503, 0.0711294562, 0.650387943, 0.756264806),i/10)
  457. char.Torso["RBone2"].C1 = char.Torso["RBone2"].C1:Lerp(CFrame.new(0.864000022, 0.07099998, -0.485000134, 0.358922511, -0.17811951, 0.916214049, 0.430222631, 0.902696013, 0.00695384201, -0.82830137, 0.391680151, 0.400628895),i/10)
  458. char.Torso["RBoneHand"].C1 = char.Torso["RBoneHand"].C1:Lerp(CFrame.new(0.181000009, -0.261000007, 0.0170000196, 0.823696554, -0.326642811, 0.463495791, 0.506709039, 0.790895104, -0.343119115, -0.254499167, 0.517483592, 0.816970527),i/10)
  459. wait()
  460. end
  461. local z = 15
  462. local rootpos = char.HumanoidRootPart.CFrame
  463. local function beams()
  464. local beam = part(char,Color3.fromRGB(248, 248, 248),"Neon",0,true,false,Vector3.new(0,0,0),false,rootpos * CFrame.new(0,-2,z) * CFrame.Angles(0,0,math.rad(180)))
  465. local beampos = beam.CFrame
  466. mesh(beam,0,0,Vector3.new(1,1,1),Enum.MeshType.Sphere)
  467. local beam1 = part(char,Color3.fromRGB(248, 248, 248),"Neon",0,true,false,Vector3.new(0,0,0),false,rootpos * CFrame.new(0,-2,-z) * CFrame.Angles(0,0,math.rad(180)))
  468. local beam1pos = beam1.CFrame
  469. mesh(beam1,0,0,Vector3.new(1,1,1),Enum.MeshType.Sphere)
  470. local beam2 = part(char,Color3.fromRGB(248, 248, 248),"Neon",0,true,false,Vector3.new(0,0,0),false,rootpos * CFrame.new(z,-2,0) * CFrame.Angles(0,0,math.rad(180)))
  471. local beam2pos = beam2.CFrame
  472. mesh(beam2,0,0,Vector3.new(1,1,1),Enum.MeshType.Sphere)
  473. local beam3 = part(char,Color3.fromRGB(248, 248, 248),"Neon",0,true,false,Vector3.new(0,0,0),false,rootpos * CFrame.new(-z,-2,0) * CFrame.Angles(0,0,math.rad(180)))
  474. local beam3pos = beam3.CFrame
  475. mesh(beam3,0,0,Vector3.new(1,1,1),Enum.MeshType.Sphere)
  476. touch = dmg(beam,1/0,.5,"Beam")
  477. touch1 = dmg(beam1,1/0,.5,"Beam2")
  478. touch2 = dmg(beam2,1/0,.5,"Beam2")
  479. touch3 = dmg(beam3,1/0,.5,"Beam3")
  480.  
  481. local beam0 = part(char,Color3.fromRGB(0, 168, 168),"Neon",0.5,true,false,Vector3.new(0,0,0),false,rootpos * CFrame.new(0,-2,z) * CFrame.Angles(0,0,math.rad(180)))
  482. mesh(beam0,0,0,Vector3.new(1,1,1),Enum.MeshType.Sphere)
  483. local beam10 = part(char,Color3.fromRGB(0, 168, 168),"Neon",0.5,true,false,Vector3.new(0,0,0),false,rootpos * CFrame.new(0,-2,-z) * CFrame.Angles(0,0,math.rad(180)))
  484. mesh(beam10,0,0,Vector3.new(1,1,1),Enum.MeshType.Sphere)
  485. local beam20 = part(char,Color3.fromRGB(0, 168, 168),"Neon",0.5,true,false,Vector3.new(0,0,0),false,rootpos * CFrame.new(z,-2,0) * CFrame.Angles(0,0,math.rad(180)))
  486. mesh(beam20,0,0,Vector3.new(1,1,1),Enum.MeshType.Sphere)
  487. local beam30 = part(char,Color3.fromRGB(0, 168, 168),"Neon",0.5,true,false,Vector3.new(0,0,0),false,rootpos * CFrame.new(-z,-2,0) * CFrame.Angles(0,0,math.rad(180)))
  488. mesh(beam30,0,0,Vector3.new(1,1,1),Enum.MeshType.Sphere)
  489. coroutine.resume(coroutine.create(function()
  490. sound(char.Torso,340722848,1,false)
  491. for i = 1,10 do
  492. beam.CFrame = beam.CFrame:Lerp(beampos * CFrame.new(0,-10,0),i/25)
  493. beam.Size = beam.Size:Lerp(Vector3.new(10,50,10),i/25)
  494. beam1.CFrame = beam1.CFrame:Lerp(beam1pos * CFrame.new(0,-10,0),i/25)
  495. beam1.Size = beam1.Size:Lerp(Vector3.new(10,50,10),i/25)
  496. beam2.CFrame = beam2.CFrame:Lerp(beam2pos * CFrame.new(0,-10,0),i/25)
  497. beam2.Size = beam2.Size:Lerp(Vector3.new(10,50,10),i/25)
  498. beam3.CFrame = beam3.CFrame:Lerp(beam3pos * CFrame.new(0,-10,0),i/25)
  499. beam3.Size = beam3.Size:Lerp(Vector3.new(10,50,10),i/25)
  500.  
  501. beam0.CFrame = beam0.CFrame:Lerp(beampos * CFrame.new(0,-10,0),i/25)
  502. beam0.Size = beam0.Size:Lerp(Vector3.new(15,50,15),i/25)
  503. beam10.CFrame = beam10.CFrame:Lerp(beam1pos * CFrame.new(0,-10,0),i/25)
  504. beam10.Size = beam10.Size:Lerp(Vector3.new(15,50,15),i/25)
  505. beam20.CFrame = beam20.CFrame:Lerp(beam2pos * CFrame.new(0,-10,0),i/25)
  506. beam20.Size = beam20.Size:Lerp(Vector3.new(15,50,15),i/25)
  507. beam30.CFrame = beam30.CFrame:Lerp(beam3pos * CFrame.new(0,-10,0),i/25)
  508. beam30.Size = beam30.Size:Lerp(Vector3.new(15,50,15),i/25)
  509. wait()
  510. end
  511. for i = 1,9 do
  512. beam.Size = beam.Size:Lerp(Vector3.new(0,50,0),i/10)
  513. beam1.Size = beam1.Size:Lerp(Vector3.new(0,50,0),i/10)
  514. beam2.Size = beam2.Size:Lerp(Vector3.new(0,50,0),i/10)
  515. beam3.Size = beam3.Size:Lerp(Vector3.new(0,50,0),i/10)
  516.  
  517. beam0.Size = beam0.Size:Lerp(Vector3.new(0,50,0),i/10)
  518. beam10.Size = beam10.Size:Lerp(Vector3.new(0,50,0),i/10)
  519. beam20.Size = beam20.Size:Lerp(Vector3.new(0,50,0),i/10)
  520. beam30.Size = beam30.Size:Lerp(Vector3.new(0,50,0),i/10)
  521. wait()
  522. end
  523. beam:Destroy()
  524. beam1:Destroy()
  525. beam2:Destroy()
  526. beam3:Destroy()
  527. beam0:Destroy()
  528. beam10:Destroy()
  529. beam20:Destroy()
  530. beam30:Destroy()
  531. touch:Disconnect()
  532. touch1:Disconnect()
  533. touch2:Disconnect()
  534. touch3:Disconnect()
  535. end))
  536. wait(.1)
  537. end
  538. for i = 1,10 do
  539. beams()
  540. z = z + 20
  541. end
  542. hum.WalkSpeed = 100
  543. hum.JumpPower = 50
  544. state = "TransIdle"
  545. canusemoves = true
  546. end
  547. local function giantblaster()
  548. canusemoves = false
  549. local blaster = part(char,Color3.new(163, 162, 165),"Plastic",1,true,false,Vector3.new(10,10,10),false,char.Torso.CFrame * CFrame.new(10,1,0))
  550. mesh(blaster,431908407,441975828,Vector3.new(.5,.5,.5),Enum.MeshType.FileMesh)
  551. local s = sound(char.Torso,422747271,1,false)
  552. coroutine.resume(coroutine.create(function()
  553. wait(.2)
  554. s.PlaybackSpeed = .5
  555. end))
  556. for i = 1,15,.5 do
  557. blaster.CFrame = blaster.CFrame:Lerp(char.HumanoidRootPart.CFrame * CFrame.Angles(0,math.rad(180),0) * CFrame.new(0,50,50),i/50)
  558. blaster.Transparency = blaster.Transparency - .1
  559. wait()
  560. end
  561. local s1 = sound(char.Torso,340722848,1,false)
  562. s1.PlaybackSpeed = .3
  563. local beam = part(char,Color3.fromRGB(248, 248, 248),"Neon",0,true,false,Vector3.new(0,0,0),false,blaster.CFrame * CFrame.new(0,-5,5))
  564. local beamm = mesh(beam,0,0,Vector3.new(1,1,1),Enum.MeshType.Sphere)
  565. local beam2 = beam:Clone()
  566. beam2.Transparency = .5
  567. beam2.Parent = char
  568. beam2.Color = Color3.fromRGB(0, 168, 168)
  569. touch1 = dmg(beam,1/0,.5,"BigBlaster")
  570. for i = 1,5 do
  571. for i = 1,10,.5 do
  572. beam.CFrame = beam.CFrame:Lerp(blaster.CFrame * CFrame.new(0,-10,750),i/50)
  573. beam.Size = beam.Size:Lerp(Vector3.new(1050,1050,1550),i/50)
  574. beam2.CFrame = beam2.CFrame:Lerp(blaster.CFrame * CFrame.new(0,-10,750),i/50)
  575. beam2.Size = beam2.Size:Lerp(Vector3.new(1150,1150,1650),i/50)
  576. wait()
  577. end
  578. for i = 1,10,.5 do
  579. beam.CFrame = beam.CFrame:Lerp(blaster.CFrame * CFrame.new(0,-10,750),i/50)
  580. beam.Size = beam.Size:Lerp(Vector3.new(1000,1000,1500),i/50)
  581. beam2.CFrame = beam2.CFrame:Lerp(blaster.CFrame * CFrame.new(0,-10,750),i/50)
  582. beam2.Size = beam2.Size:Lerp(Vector3.new(1100,1100,1600),i/50)
  583. wait()
  584. end
  585. end
  586. for i = 1,30 do
  587. beam.Size = beam.Size:Lerp(Vector3.new(0,0,1500),i/100)
  588. beam2.Size = beam2.Size:Lerp(Vector3.new(0,0,1500),i/100)
  589. blaster.Transparency = blaster.Transparency + .2
  590. wait()
  591. end
  592. touch1:Disconnect()
  593. beam:Destroy()
  594. beam2:Destroy()
  595. blaster:Destroy()
  596. canusemoves = true
  597. end
  598. local function concentratedblaster()
  599. canusemoves = false
  600. local blaster = part(char,Color3.new(163, 162, 165),"Plastic",1,true,false,Vector3.new(1,1,1),false,mouse.Hit * CFrame.new(10,1,0))
  601. mesh(blaster,431908407,441975828,Vector3.new(.05,.05,.05),Enum.MeshType.FileMesh)
  602. sound(blaster,422747271,1,false)
  603.  
  604. local ray = Ray.new(mouse.Hit.p, (mouse.Hit.p + CFrame.new(math.random(-5,5),10,math.random(-5,5)).p - mouse.Hit.p).unit * 20)
  605. local part1, pos = workspace:FindPartOnRay(ray, char, false, true)
  606.  
  607. local dist = (mouse.Hit.p - pos).magnitude
  608. for i = 1,25 do
  609. blaster.CFrame = blaster.CFrame:Lerp(CFrame.new(mouse.Hit.p, pos) * CFrame.new(0,2, -dist),i/15)
  610. blaster.Transparency = blaster.Transparency - .1
  611. wait()
  612. end
  613. sound(blaster,340722848,1,false)
  614. local beam = part(char,Color3.fromRGB(248, 248, 248),"Neon",0,true,false,Vector3.new(0,0,0),false,blaster.CFrame * CFrame.new(0,-2,3))
  615. local beamm = mesh(beam,0,0,Vector3.new(1,1,1),Enum.MeshType.Sphere)
  616. local beam2 = beam:Clone()
  617. beam2.Transparency = .5
  618. beam2.Parent = char
  619. beam2.Color = Color3.fromRGB(0, 168, 168)
  620. touch = dmg(beam,1/0,.5,"ConcentratedBlaster")
  621. local function part()
  622. if particles == false then return end
  623. local p = Instance.new("Part",char)
  624. local s = math.random(.25,2)
  625. p.Size = Vector3.new(s,s,s)
  626. p.BrickColor = BrickColor.new("Baby blue")
  627. p.Material = Enum.Material.Neon
  628. p.CanCollide = false
  629. p.CFrame = blaster.CFrame * CFrame.new(0,-2,3) * CFrame.Angles(0,math.rad(180),0)
  630. p.Orientation = p.Orientation + Vector3.new(math.random(-15,15),math.random(-15,15),0)
  631. p.Name = "Particle"
  632. local vel = Instance.new("BodyVelocity",p)
  633. vel.MaxForce = Vector3.new(1/0,1/0,1/0)
  634. vel.Velocity = p.CFrame.LookVector * 20 * 2
  635. coroutine.resume(coroutine.create(function()
  636. for i = 1,100 do
  637. if not p then break end
  638. p.Size = p.Size - Vector3.new(0.02,0.02,0.02)
  639. wait()
  640. end
  641. p:Destroy()
  642. end))
  643. end
  644. for i = 1,3 do
  645. for i = 1,4,.5 do
  646. part()
  647. beam.CFrame = beam.CFrame:Lerp(blaster.CFrame * CFrame.new(0,-2,18),i/10)
  648. beam.Size = beam.Size:Lerp(Vector3.new(15,15,30),i/10)
  649. beam2.CFrame = beam2.CFrame:Lerp(blaster.CFrame * CFrame.new(0,-2,18),i/10)
  650. beam2.Size = beam2.Size:Lerp(Vector3.new(18,18,33),i/10)
  651. wait()
  652. end
  653. for i = 1,4,.5 do
  654. part()
  655. beam.CFrame = beam.CFrame:Lerp(blaster.CFrame * CFrame.new(0,-2,18),i/10)
  656. beam.Size = beam.Size:Lerp(Vector3.new(18,18,33),i/10)
  657. beam2.CFrame = beam2.CFrame:Lerp(blaster.CFrame * CFrame.new(0,-2,18),i/10)
  658. beam2.Size = beam2.Size:Lerp(Vector3.new(20,20,35),i/10)
  659. wait()
  660. end
  661. end
  662. canusemoves = true
  663. for i = 1,10 do
  664. beam.Size = beam.Size:Lerp(Vector3.new(0,0,30),i/15)
  665. beam2.Size = beam2.Size:Lerp(Vector3.new(0,0,30),i/15)
  666. blaster.CFrame = blaster.CFrame * CFrame.new(0,0,-1)
  667. blaster.Transparency = blaster.Transparency + .3
  668. wait()
  669. end
  670. touch:Disconnect()
  671. beam:Destroy()
  672. beam2:Destroy()
  673. blaster:Destroy()
  674. end
  675. local function TRANSFORM()
  676. canusemoves = false
  677. hum.WalkSpeed = 0
  678. hum.JumpPower = 0
  679. if transformed == false then
  680. state = "Transform"
  681. for i = 1,5 do --OG POS
  682. char.Torso["Left Arm"].C1 = char.Torso["Left Arm"].C1:Lerp(CFrame.new(0.056999974, 0.0190000236, -0.0129999965, -0.0194480661, -0.0922357887, 0.995547295, 0.113948643, 0.989043057, 0.0938591808, -0.993296266, 0.115266472, -0.00872481614),i/10)
  683. char.Torso["Right Arm"].C1 = char.Torso["Right Arm"].C1:Lerp(CFrame.new(0.435000002, 0.828000009, -0.0629999936, 0.459384769, -0.886023879, -0.0626689941, 0.810884595, 0.389536917, 0.436723292, -0.362535417, -0.251441419, 0.897410393),i/10)
  684. char.HumanoidRootPart["Torso"].C1 = char.HumanoidRootPart["Torso"].C1:Lerp(CFrame.new(0.00900000334, 0.724000096, 0.0960000008, 0.999075651, 0, 0.042986989, 0.00425668992, 0.99508518, -0.0989312157, -0.0427757166, 0.0990227461, 0.994165361),i/10)
  685. char.Torso["Left Leg"].C1 = char.Torso["Left Leg"].C1:Lerp(CFrame.new(-0.0579999983, -0.676999986, 1.11199999, 0.999884725, 0, -0.0151847899, 0.000831930898, 0.998498261, 0.0547808409, 0.0151619865, -0.0547871292, 0.998383224),i/10)
  686. char.Torso["Right Leg"].C1 = char.Torso["Right Leg"].C1:Lerp(CFrame.new(0.0139999986, 0.308000028, -0.466999888, 0.999874413, -0.00486472622, -0.0150835691, -0.00970396399, 0.56454742, -0.82534337, 0.0125304833, 0.825386167, 0.564429104),i/10)
  687. char.Torso["Head"].C1 = char.Torso["Head"].C1:Lerp(CFrame.new(0, -0.192000002, 0.197999999, 1, 0, 0, 0, 0.885983765, -0.463716388, 0, 0.463716388, 0.885983765),i/10)
  688. wait()
  689. end
  690. char.Head.BillboardGui.TextLabel.TextScaled = false
  691. char.Head.BillboardGui.TextLabel.TextWrapped = false
  692. char.Head.BillboardGui.TextLabel.TextSize = 75
  693. local function dia(t,w)
  694. for i = 1,#t do
  695. sound(char.Torso,2469886818,1,true)
  696. char.Head.BillboardGui.TextLabel.Text = string.sub(t,1,i)
  697. if w == 0 then
  698. wait(.05)
  699. elseif w ~= 0 then
  700. wait(w)
  701. end
  702. end
  703. end
  704. music.SoundId = "rbxassetid://2567531741"
  705. music.TimePosition = 15
  706. dia(". . .",0.5)
  707. wait(2)
  708. dia("Welp. . .",0)
  709. wait(2)
  710. dia("I think you have beaten me. . .")
  711. wait(2)
  712. dia("But, then again. . .",0)
  713. wait(2)
  714. dia("I feel kinda bad for you.",0)
  715. wait(2)
  716. dia("You've made me want to use my REAL special attack. .",0)
  717. wait(2)
  718. dia("So, here goes nothing. . .",0)
  719. wait(2)
  720. dia("Prepare yourself",0.1)
  721. wait(2)
  722. sound(char.Torso,367453005,1,true)
  723. for i,child in pairs(char.Bones:GetChildren()) do
  724. child.Transparency = 0
  725. end
  726. transformed = true
  727. hum.WalkSpeed = 100
  728. state = "TransIdle"
  729. char.Head.BillboardGui.TextLabel.TextScaled = true
  730. char.Head.BillboardGui.TextLabel.TextWrapped = true
  731. char.Head.BillboardGui.TextLabel.Text = "ULTRA SANS"
  732. local inner = part(char,Color3.fromRGB(229, 228, 223),"Neon",0,true,false,Vector3.new(5,5,5),false,char.Torso.CFrame)
  733. inner.Shape = "Ball"
  734. for i = 1,10 do
  735. inner.Size = inner.Size + Vector3.new(.5,.5,.5)
  736. inner.Transparency = inner.Transparency + .1
  737. wait()
  738. end
  739. hum.JumpPower = 50
  740. canusemoves = true
  741. else
  742. canusemoves = false
  743. state = "Transform"
  744. for i = 1,5 do --SAME POS AS OG FOR LERP BETWEEN ANIMS
  745. char.HumanoidRootPart["Torso"].C1 = char.HumanoidRootPart["Torso"].C1:Lerp(CFrame.new(0.00900000334, 1.13600016, 0, 0.999975502, 0, 0.00700038671, 0.00022397429, 0.999487996, -0.0319937542, -0.00699680252, 0.0319945365, 0.999463499),i/10)
  746. char.Torso["Head"].C1 = char.Torso["Head"].C1:Lerp(CFrame.new(0, -0.158000007, 0.287, 0.998878598, -0.0315804854, 0.0352746546, 0.0436943248, 0.901797712, -0.42994374, -0.0182327554, 0.431002855, 0.902166367),i/10)
  747. char.Torso["Left Arm"].C1 = char.Torso["Left Arm"].C1:Lerp(CFrame.new(),i/10)
  748. char.Torso["Right Arm"].C1 = char.Torso["Right Arm"].C1:Lerp(CFrame.new(-0.149999991, -0.00700002909, 0.382000029, 0.98718369, 0.14615038, -0.0640985891, -0.146712765, 0.989170492, -0.0041319374, 0.0628005564, 0.0134830177, 0.997935057),i/10)
  749. char.Torso["Left Leg"].C1 = char.Torso["Left Leg"].C1:Lerp(CFrame.new(0, 0.259000033, -0.513000011, 0.997798383, 0, -0.0663221478, -0.066080302, 0.0853216946, -0.994159877, 0.00565871783, 0.996353447, 0.0851338506),i/10)
  750. char.Torso["Right Leg"].C1 = char.Torso["Right Leg"].C1:Lerp(CFrame.new(0.0169999972, 0.338999987, -0.594999969, 0.998718858, 0.0193810277, -0.0467441007, -0.0486966521, 0.11696741, -0.991941214, -0.0137573313, 0.992946684, 0.117761403),i/10)
  751. char.Torso["LBone1"].C1 = char.Torso["LBone1"].C1:Lerp(CFrame.new(0, -0.324000031, -0.064000003, 1, 0, 0, 0, 0.867727399, -0.49704051, 0, 0.49704051, 0.867727399),i/10)
  752. char.Torso["LBone2"].C1 = char.Torso["LBone2"].C1:Lerp(CFrame.new(-0.428000003, -1.06699991, -0.169, -0.428981036, -0.898426592, 0.0938345045, 0.748467624, -0.41168049, -0.51991868, 0.505738616, -0.152803123, 0.84904635),i/10)
  753. char.Torso["LBoneHand"].C1 = char.Torso["LBoneHand"].C1:Lerp(CFrame.new(0.479000002, -0.138000071, -0.179999977, 0.604418039, 0.317792088, 0.730538785, -0.12185283, 0.943081319, -0.309434235, -0.787293196, 0.0980095118, 0.608739197),i/10)
  754. char.Torso["RBone1"].C1 = char.Torso["RBone1"].C1:Lerp(CFrame.new(0.0670000017, -0.601999998, -0.468000054, 0.0434085429, -0.974861622, -0.218541369, 0.794642568, 0.166272491, -0.583863616, 0.605523646, -0.148317561, 0.781884313),i/10)
  755. char.Torso["RBone2"].C1 = char.Torso["RBone2"].C1:Lerp(CFrame.new(0, 0.574999988, -0.449000001, 1, 0, 0, 0, 0.905098259, 0.425202429, 0, -0.425202429, 0.905098259),i/10)
  756. char.Torso["RBoneHand"].C1 = char.Torso["RBoneHand"].C1:Lerp(CFrame.new(-0.331, -0.545000017, -0.233999982, 0.842293561, -0.303380311, -0.445535541, -0.30922851, 0.405049354, -0.860414267, 0.44149667, 0.862493694, 0.247356683),i/10)
  757. wait()
  758. end
  759. local function dia(t,w)
  760. for i = 1,#t do
  761. sound(char.Torso,2469886818,1,true)
  762. char.Head.BillboardGui.TextLabel.Text = string.sub(t,1,i)
  763. if w == 0 then
  764. wait(.05)
  765. elseif w ~= 0 then
  766. wait(w)
  767. end
  768. end
  769. end
  770. char.Head.BillboardGui.TextLabel.TextScaled = false
  771. char.Head.BillboardGui.TextLabel.TextWrapped = false
  772. char.Head.BillboardGui.TextLabel.TextSize = 75
  773. dia("Phew. . .",0)
  774. wait(1)
  775. dia("Being Ultra Sans is really tiring. .",0)
  776. wait(1)
  777. dia("I don't think i can. . .",.1)
  778. wait(2)
  779. music.SoundId = "rbxassetid://385705841"
  780. sound(char.Torso,367453005,1,true)
  781. for i,child in pairs(char.Bones:GetChildren()) do
  782. child.Transparency = 1
  783. end
  784. transformed = false
  785. hum.WalkSpeed = 16
  786. hum.JumpPower = 50
  787. state = "Idle"
  788. char.Head.BillboardGui.TextLabel.TextScaled = true
  789. char.Head.BillboardGui.TextLabel.TextWrapped = true
  790. char.Head.BillboardGui.TextLabel.Text = "SANS"
  791. local inner = part(char,Color3.fromRGB(229, 228, 223),"Neon",0,true,false,Vector3.new(5,5,5),false,char.Torso.CFrame)
  792. inner.Shape = "Ball"
  793. for i = 1,10 do
  794. inner.Size = inner.Size + Vector3.new(.5,.5,.5)
  795. inner.Transparency = inner.Transparency + .1
  796. wait()
  797. end
  798. canusemoves = true
  799. end
  800. end
  801. local function emote()
  802. state = "Emoting"
  803. for i = 1,7 do --SAME POS AS OG FOR LERP BETWEEN ANIMS
  804. char.HumanoidRootPart["Torso"].C1 = char.HumanoidRootPart["Torso"].C1:Lerp(CFrame.new(0.00900000334, -0.50699985, 0, 0.999975502, 0, 0.00700038671, 0.00022397429, 0.999487996, -0.0319937542, -0.00699680252, 0.0319945365, 0.999463499),i/10)
  805. char.Torso["Head"].C1 = char.Torso["Head"].C1:Lerp(CFrame.new(-0.0419999994, 0.0300000012, -0.0259999931, 0.998878598, -0.0315804854, 0.0352746546, 0.0307644717, 0.999251783, 0.0234414339, -0.0359885357, -0.0223299563, 0.999102771),i/10)
  806. char.Torso["Left Arm"].C1 = char.Torso["Left Arm"].C1:Lerp(CFrame.new(0.487999976, 0.465000033, -0.050999999, 0.0038388744, -0.999662161, -0.0257050395, 0.999534369, 0.00461401232, -0.030161269, 0.0302696526, -0.0255772248, 0.99921453),i/10)
  807. char.Torso["Right Arm"].C1 = char.Torso["Right Arm"].C1:Lerp(CFrame.new(-0.541999996, 0.450999975, 0.00500005484, -0.0211608075, 0.998084068, 0.0581420325, -0.999041736, -0.0188807696, -0.0394893922, -0.0383159667, -0.0589219928, 0.997526944),i/10)
  808. char.Torso["Left Leg"].C1 = char.Torso["Left Leg"].C1:Lerp(CFrame.new(0, 0.0399999954, 0.030999992, 0.999828458, -0.00302356249, -0.0182793885, 0.003598287, 0.999497533, 0.031490393, 0.0181749966, -0.031550739, 0.999336958),i/10)
  809. char.Torso["Right Leg"].C1 = char.Torso["Right Leg"].C1:Lerp(CFrame.new(0.0169999972, 0.0500000045, 0.0320001021, 0.998859048, 0.00838526618, -0.0470130742, -0.00725344848, 0.999681056, 0.0241940971, 0.0472008698, -0.0238254797, 0.998601198),i/10)
  810. char.Torso["LBone1"].C1 = char.Torso["LBone1"].C1:Lerp(CFrame.new(0.620000005, -0.425000072, -0.11900004, 0.589940667, -0.803473711, -0.0800003707, 0.76222986, 0.586854398, -0.27314353, 0.266412228, 0.100159764, 0.958641112),i/10)
  811. char.Torso["LBone2"].C1 = char.Torso["LBone2"].C1:Lerp(CFrame.new(-0.0260000825, 0.627000213, -1.69199991, 0.697628796, 0.669468045, -0.255198777, 0.497541755, -0.196391657, 0.844915748, 0.515525222, -0.716409504, -0.470096946),i/10)
  812. char.Torso["LBoneHand"].C1 = char.Torso["LBoneHand"].C1:Lerp(CFrame.new(0.0870000422, -0.340000033, -0.0809999779, 0.952419043, 0.0340608358, 0.302882433, 0.168925047, 0.768159509, -0.617572069, -0.253697038, 0.639351964, 0.725855887),i/10)
  813. char.Torso["RBone1"].C1 = char.Torso["RBone1"].C1:Lerp(CFrame.new(0.440000027, -0.461000025, -0.0700000226, 0.696662664, -0.714155197, 0.0681422055, 0.686921179, 0.691441655, 0.223713696, -0.206882864, -0.109044507, 0.972270131),i/10)
  814. char.Torso["RBone2"].C1 = char.Torso["RBone2"].C1:Lerp(CFrame.new(0.864000022, 0.216999978, -1.18900013, 0.358922511, -0.17811951, 0.916214049, -0.633575499, 0.674327433, 0.379294902, -0.685388088, -0.716628194, 0.129179075),i/10)
  815. char.Torso["RBoneHand"].C1 = char.Torso["RBoneHand"].C1:Lerp(CFrame.new(-0.201999992, -0.444999993, -0.141999975, 0.822396636, 0.337788969, -0.457779735, -0.564056516, 0.589052677, -0.578668416, 0.074188605, 0.734108567, 0.674966991),i/10)
  816. wait()
  817. end
  818. music:Pause()
  819. hum.AutoRotate = false
  820. local song = sound(char.Torso,3956754701,1,false)
  821. local playing = true
  822. song.Ended:Connect(function()
  823. music:Resume()
  824. playing = false
  825. hum.AutoRotate = true
  826. char.HumanoidRootPart.Torso.C0 = CFrame.new(0,0,0)
  827. if transformed == false then
  828. state = "Idle"
  829. else
  830. state = "TransIdle"
  831. end
  832. end)
  833. while playing == true do
  834. char.HumanoidRootPart.Torso.C0 = char.HumanoidRootPart.Torso.C0 * CFrame.Angles(0,.1,0)
  835. wait()
  836. end
  837. end
  838. --END OF MOVES
  839.  
  840.  
  841. --KEYBINDS
  842. mouse.KeyDown:Connect(function(key)
  843. key = string.lower(key)
  844. if state == "Transform" then return end
  845. if canusemoves == false then return end
  846. if string.byte(key) == 114 then
  847. teleport()
  848. elseif string.byte(key) == 49 then
  849. if transformed == false then
  850. blaster()
  851. else
  852. slam()
  853. end
  854. elseif string.byte(key) == 50 then
  855. if transformed == false then
  856. bigblaster()
  857. else
  858. giantblaster()
  859. end
  860. elseif string.byte(key) == 51 then
  861. if transformed == false then
  862. doubleblaster()
  863. else
  864. concentratedblaster()
  865. end
  866. elseif string.byte(key) == 48 then
  867. TRANSFORM()
  868. elseif string.byte(key) == 109 then
  869. mute = not mute
  870. if mute == true then
  871. music.Volume = 0
  872. elseif mute == false then
  873. music.Volume = 1
  874. end
  875. elseif string.byte(key) == 98 then
  876. if state == "Emoting" then return end
  877. emote()
  878. elseif string.byte(key) == 99 then
  879. cleanup()
  880. elseif string.byte(key) == 57 then
  881. particles = not particles
  882. end
  883. end)
  884. --END OF KEYBINDS
  885.  
  886.  
  887. --ANIMATIONS
  888. hum.Running:Connect(function(spd)
  889. if state == "Transform" or state == "Emoting" then return end
  890. if spd > 6 then
  891. if transformed == false then
  892. state = "Walk"
  893. else
  894. state = "TransWalk"
  895. end
  896. elseif spd < 6 then
  897. if transformed == false then
  898. state = "Idle"
  899. for i = 1,5 do --SAME POS AS OG FOR LERP BETWEEN ANIMS
  900. if state ~= "Idle" then break end
  901. char.Torso["Left Arm"].C1 = char.Torso["Left Arm"].C1:Lerp(CFrame.new(-0.461000025, 0.55400002, -0.138999999, 0.637414873, 0.770431399, -0.0117421225, -0.72914505, 0.59818989, -0.33243987, -0.249098092, 0.220463797, 0.943051398),i/10)
  902. char.Torso["Right Arm"].C1 = char.Torso["Right Arm"].C1:Lerp(CFrame.new(0.435000002, 0.564999998, -0.197999999, 0.631951034, -0.768613815, 0.0993518978, 0.743860662, 0.565570116, -0.356092572, 0.217507169, 0.298936963, 0.929154098),i/10)
  903. char.HumanoidRootPart["Torso"].C1 = char.HumanoidRootPart["Torso"].C1:Lerp(CFrame.new(0.00900000334, 0, 0, 0.999075651, 0, 0.042986989, 0, 1, 0, -0.042986989, 0, 0.999075651),i/10)
  904. char.Torso["Left Leg"].C1 = char.Torso["Left Leg"].C1:Lerp(CFrame.new(0, 0, 0, 0.981969237, 0, -0.189040929, 0, 1, 0, 0.189040929, 0, 0.981969237),i/10)
  905. char.Torso["Right Leg"].C1 = char.Torso["Right Leg"].C1:Lerp(CFrame.new(0, 0, 0, 0.987799048, 0, 0.155733824, 0, 1, 0, -0.155733824, 0, 0.987799048),i/10)
  906. char.Torso["Head"].C1 = char.Torso["Head"].C1:Lerp(CFrame.new(0, 0, -0.0430000015, 1, 0, 0, 0, 0.996217906, 0.0868901834, 0, -0.0868901834, 0.996217906),i/10)
  907. wait()
  908. end
  909. else
  910. state = "TransIdle"
  911. for i = 1,5 do --SAME POS AS OG FOR LERP BETWEEN ANIMS
  912. if state ~= "TransIdle" then break end
  913. char.HumanoidRootPart["Torso"].C1 = char.HumanoidRootPart["Torso"].C1:Lerp(CFrame.new(0.00900000334, -0.694999993, 0, 0.935831666, 0, -0.352447331, 0, 1, 0, 0.352447331, 0, 0.935831666),i/10)
  914. char.Torso["Head"].C1 = char.Torso["Head"].C1:Lerp(CFrame.new(0, 0, -0.0470000021, 0.932780027, -0.0073428303, 0.360371411, 0.0158635247, 0.999660075, -0.0206921175, -0.360096961, 0.0250179321, 0.932579398),i/10)
  915. char.Torso["Left Arm"].C1 = char.Torso["Left Arm"].C1:Lerp(CFrame.new(0.0119999945, -0.0989999771, -0.0259999633, 0.953588724, -0.114257872, 0.278592318, 0.169170648, 0.968679905, -0.181770369, -0.249098092, 0.220463797, 0.943051398),i/10)
  916. char.Torso["Right Arm"].C1 = char.Torso["Right Arm"].C1:Lerp(CFrame.new(-0.138999984, 0.755999982, 0.553000033, 0.549539685, -0.485859394, -0.679666698, 0.78908205, 0.569134772, 0.231160864, 0.274510205, -0.66334486, 0.696144998),i/10)
  917. char.Torso["Left Leg"].C1 = char.Torso["Left Leg"].C1:Lerp(CFrame.new(0, 0, 0, 0.831290603, 0, -0.555838168, 0, 1, 0, 0.555838168, 0, 0.831290603),i/10)
  918. char.Torso["Right Leg"].C1 = char.Torso["Right Leg"].C1:Lerp(CFrame.new(0.0169999972, -0.611999989, 0.600000024, 0.907057285, 0, 0.421007216, 0, 1, 0, -0.421007216, 0, 0.907057285),i/10)
  919. char.Torso["LBone1"].C1 = char.Torso["LBone1"].C1:Lerp(CFrame.new(0, 0.382999986, -0.064000003, 1, 0, 0, 0, 0.931965172, 0.362547845, 0, -0.362547845, 0.931965172),i/10)
  920. char.Torso["LBone2"].C1 = char.Torso["LBone2"].C1:Lerp(CFrame.new(0.238000005, -0.0279999971, 0, 0.974120438, 0, 0.226029813, 0, 1, 0, -0.226029813, 0, 0.974120438),i/10)
  921. char.Torso["LBoneHand"].C1 = char.Torso["LBoneHand"].C1:Lerp(CFrame.new(0.324000001, -0.609000027, -0.231999993, 0.788916826, 0.281206846, 0.546381593, 0.292753607, 0.609765172, -0.736533582, -0.540282786, 0.741019011, 0.398729682),i/10)
  922. char.Torso["RBone1"].C1 = char.Torso["RBone1"].C1:Lerp(CFrame.new(0.0670000017, 0.465000004, 0, 0.752464771, -0.658632517, 0, 0.497680485, 0.568582654, 0.655002236, -0.431405783, -0.492866099, 0.755626976),i/10)
  923. char.Torso["RBone2"].C1 = char.Torso["RBone2"].C1:Lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i/10)
  924. char.Torso["RBoneHand"].C1 = char.Torso["RBoneHand"].C1:Lerp(CFrame.new(-0.19600004, -0.592999995, -0.187000006, 0.913164496, -0.311582476, -0.262767971, 0, 0.64468497, -0.764448345, 0.407591254, 0.698067188, 0.588703454),i/10)
  925. wait()
  926. end
  927. end
  928. end
  929. end)
  930.  
  931. while run.RenderStepped:Wait() do --MOVEMENT
  932. if hum.Health ~= hum.MaxHealth then
  933. hum.Health = hum.MaxHealth
  934. end
  935. if state == "Idle" then
  936. for i = 1,20,.5 do --ALTER
  937. if state ~= "Idle" then break end
  938. char.Torso["Left Arm"].C1 = char.Torso["Left Arm"].C1:Lerp(CFrame.new(-0.262000024, 0.807000041, -0.138999999, 0.637414873, 0.770431399, -0.0117421225, -0.72914505, 0.59818989, -0.33243987, -0.249098092, 0.220463797, 0.943051398),i/100)
  939. char.Torso["Right Arm"].C1 = char.Torso["Right Arm"].C1:Lerp(CFrame.new(0.221999988, 0.730000019, -0.197999999, 0.631951034, -0.768613815, 0.0993518978, 0.743860662, 0.565570116, -0.356092572, 0.217507169, 0.298936963, 0.929154098),i/100)
  940. char.HumanoidRootPart["Torso"].C1 = char.HumanoidRootPart["Torso"].C1:Lerp(CFrame.new(0.00900000334, 0.172999993, 0, 0.999075651, 0, 0.042986989, 0, 1, 0, -0.042986989, 0, 0.999075651),i/100)
  941. char.Torso["Left Leg"].C1 = char.Torso["Left Leg"].C1:Lerp(CFrame.new(0, -0.193000004, 0, 0.981969237, 0, -0.189040929, 0, 1, 0, 0.189040929, 0, 0.981969237),i/100)
  942. char.Torso["Right Leg"].C1 = char.Torso["Right Leg"].C1:Lerp(CFrame.new(00, -0.193000004, 0, 0.987799048, 0, 0.155733824, 0, 1, 0, -0.155733824, 0, 0.987799048),i/100)
  943. char.Torso["Head"].C1 = char.Torso["Head"].C1:Lerp(CFrame.new(0, 0, -0.0210000016, 1, 0, 0, 0, 0.998942196, -0.0459838733, 0, 0.0459838733, 0.998942196),i/100)
  944. wait()
  945. end
  946. for i = 1,20,.5 do --OG POS
  947. if state ~= "Idle" then break end
  948. char.Torso["Left Arm"].C1 = char.Torso["Left Arm"].C1:Lerp(CFrame.new(-0.461000025, 0.55400002, -0.138999999, 0.637414873, 0.770431399, -0.0117421225, -0.72914505, 0.59818989, -0.33243987, -0.249098092, 0.220463797, 0.943051398),i/100)
  949. char.Torso["Right Arm"].C1 = char.Torso["Right Arm"].C1:Lerp(CFrame.new(0.435000002, 0.564999998, -0.197999999, 0.631951034, -0.768613815, 0.0993518978, 0.743860662, 0.565570116, -0.356092572, 0.217507169, 0.298936963, 0.929154098),i/100)
  950. char.HumanoidRootPart["Torso"].C1 = char.HumanoidRootPart["Torso"].C1:Lerp(CFrame.new(0.00900000334, 0, 0, 0.999075651, 0, 0.042986989, 0, 1, 0, -0.042986989, 0, 0.999075651),i/100)
  951. char.Torso["Left Leg"].C1 = char.Torso["Left Leg"].C1:Lerp(CFrame.new(0, 0, 0, 0.981969237, 0, -0.189040929, 0, 1, 0, 0.189040929, 0, 0.981969237),i/100)
  952. char.Torso["Right Leg"].C1 = char.Torso["Right Leg"].C1:Lerp(CFrame.new(0, 0, 0, 0.987799048, 0, 0.155733824, 0, 1, 0, -0.155733824, 0, 0.987799048),i/100)
  953. char.Torso["Head"].C1 = char.Torso["Head"].C1:Lerp(CFrame.new(0, 0, -0.0430000015, 1, 0, 0, 0, 0.996217906, 0.0868901834, 0, -0.0868901834, 0.996217906),i/100)
  954. wait()
  955. end
  956.  
  957. elseif state == "Walk" then
  958.  
  959. for i = 1,7 do --OG POS
  960. if state ~= "Walk" then break end
  961. char.HumanoidRootPart["Torso"].C1 = char.HumanoidRootPart["Torso"].C1:Lerp(CFrame.new(0.00900000334, 0.074000001, 0, 0.999075651, 0, 0.042986989, 0.00425668992, 0.99508518, -0.0989312157, -0.0427757166, 0.0990227461, 0.994165361),i/10)
  962. char.Torso["Left Leg"].C1 = char.Torso["Left Leg"].C1:Lerp(CFrame.new(-0.0579999983, -0.319999993, 0.941000044, 0.999884725, 0, -0.0151847899, 0.00213675085, 0.990050018, 0.14070034, 0.0150337014, -0.140716523, 0.989935935),i/10)
  963. char.Torso["Right Leg"].C1 = char.Torso["Right Leg"].C1:Lerp(CFrame.new(0, -0.0829999894, -0.00199995935, 0.999874413, -0.00486472622, -0.0150835691, 0.00464448333, 0.999882519, -0.0146040581, 0.0151528455, 0.0145321339, 0.999779403),i/10)
  964. wait()
  965. end
  966. for i = 1,7 do --ALTER
  967. if state ~= "Walk" then break end
  968. char.HumanoidRootPart["Torso"].C1 = char.HumanoidRootPart["Torso"].C1:Lerp(CFrame.new(0.00900000334, -0.0549999923, 0, 0.999075651, 0, 0.042986989, 0.00425668992, 0.99508518, -0.0989312157, -0.0427757166, 0.0990227461, 0.994165361),i/10)
  969. char.Torso["Left Leg"].C1 = char.Torso["Left Leg"].C1:Lerp(CFrame.new(-0.0579999983, -0.0370000005, 0.758000016, 0.999884725, 0, -0.0151847899, -0.000212583458, 0.999902129, -0.0139981192, 0.0151833044, 0.0139997695, 0.999786973),i/10)
  970. char.Torso["Right Leg"].C1 = char.Torso["Right Leg"].C1:Lerp(CFrame.new(0.0139999986, 0.0220000073, -0.254999876, 0.999874413, -0.00486472622, -0.0150835691, 0.000127533451, 0.954164326, -0.299282908, 0.0158481449, 0.299243391, 0.954044878),i/10)
  971. wait()
  972. end
  973. for i = 1,7 do --ALTER2
  974. if state ~= "Walk" then break end
  975. char.HumanoidRootPart["Torso"].C1 = char.HumanoidRootPart["Torso"].C1:Lerp(CFrame.new(0.00900000334, 0.074000001, 0, 0.999075651, 0, 0.042986989, 0.00425668992, 0.99508518, -0.0989312157, -0.0427757166, 0.0990227461, 0.994165361),i/10)
  976. char.Torso["Left Leg"].C1 = char.Torso["Left Leg"].C1:Lerp(CFrame.new(-0.0579999983, -0.0370000005, -0.00199997425, 0.999884725, 0, -0.0151847899, -0.000212583458, 0.999902129, -0.0139981192, 0.0151833044, 0.0139997695, 0.999786973),i/10)
  977. char.Torso["Right Leg"].C1 = char.Torso["Right Leg"].C1:Lerp(CFrame.new(0, -0.393999994, 1.02200007, 0.999874413, -0.00486472622, -0.0150835691, 0.00583783258, 0.997858047, 0.065154776, 0.0147343017, -0.0652347058, 0.997760952),i/10)
  978. wait()
  979. end
  980. for i = 1,7 do --ALTER3
  981. if state ~= "Walk" then break end
  982. char.HumanoidRootPart["Torso"].C1 = char.HumanoidRootPart["Torso"].C1:Lerp(CFrame.new(0.00900000334, -0.0549999923, 0, 0.999075651, 0, 0.042986989, 0.00425668992, 0.99508518, -0.0989312157, -0.0427757166, 0.0990227461, 0.994165361),i/10)
  983. char.Torso["Left Leg"].C1 = char.Torso["Left Leg"].C1:Lerp(CFrame.new(-0.0579999983, 0.0530000031, -0.248999968, 0.999884725, 0, -0.0151847899, -0.00427201996, 0.959609628, -0.281302989, 0.0145714711, 0.281335443, 0.959499121),i/10)
  984. char.Torso["Right Leg"].C1 = char.Torso["Right Leg"].C1:Lerp(CFrame.new(0.00100000203, -0.0769999921, 0.836000085, 0.999874413, -0.00486472622, -0.0150835691, 0.00442625675, 0.999570429, -0.0289694145, 0.0152180223, 0.0288989693, 0.99946624),i/10)
  985. wait()
  986. end
  987.  
  988. elseif state == "TransIdle" then
  989. --I should have used variables for the welds shouldn't i
  990. for i = 1,20,.5 do --ALTER
  991. if state ~= "TransIdle" then break end
  992. char.HumanoidRootPart["Torso"].C1 = char.HumanoidRootPart["Torso"].C1:Lerp(CFrame.new(0.00900000334, -0.492999971, 0, 0.935831666, 0, -0.352447331, 0, 1, 0, 0.352447331, 0, 0.935831666),i/100)
  993. char.Torso["Head"].C1 = char.Torso["Head"].C1:Lerp(CFrame.new(0, 0, -0.0470000021, 0.932780027, -0.0073428303, 0.360371411, 0.0339076146, 0.997146428, -0.0674483925, -0.358847797, 0.0751338229, 0.930367231),i/100)
  994. char.Torso["Left Arm"].C1 = char.Torso["Left Arm"].C1:Lerp(CFrame.new(0.0119999945, 0.0840000212, -0.0259999633, 0.953588724, -0.114257872, 0.278592318, 0.169170648, 0.968679905, -0.181770369, -0.249098092, 0.220463797, 0.943051398),i/100)
  995. char.Torso["Right Arm"].C1 = char.Torso["Right Arm"].C1:Lerp(CFrame.new(-0.138999984, 0.755999982, 0.382000029, 0.549539685, -0.485859394, -0.679666698, 0.78908205, 0.569134772, 0.231160864, 0.274510205, -0.66334486, 0.696144998),i/100)
  996. char.Torso["Left Leg"].C1 = char.Torso["Left Leg"].C1:Lerp(CFrame.new(0, 0.178000003, 0, 0.831290603, 0, -0.555838168, 0, 1, 0, 0.555838168, 0, 0.831290603),i/100)
  997. char.Torso["Right Leg"].C1 = char.Torso["Right Leg"].C1:Lerp(CFrame.new(0.0169999972, -0.263999999, 0.600000024, 0.907057285, 0, 0.421007216, 0, 1, 0, -0.421007216, 0, 0.907057285),i/100)
  998. char.Torso["LBone1"].C1 = char.Torso["LBone1"].C1:Lerp(CFrame.new(0, 0.382999986, -0.064000003, 1, 0, 0, 0, 0.931965172, 0.362547845, 0, -0.362547845, 0.931965172),i/100)
  999. char.Torso["LBone2"].C1 = char.Torso["LBone2"].C1:Lerp(CFrame.new(0.238000005, 0.213, 0, 0.974120438, 0, 0.226029813, -0.0473801419, 0.977783144, 0.204194158, -0.221008137, -0.209619001, 0.952478528),i/100)
  1000. char.Torso["LBoneHand"].C1 = char.Torso["LBoneHand"].C1:Lerp(CFrame.new(0.324000001, -0.736000061, -0.404999971, 0.788916826, 0.281206846, 0.546381593, 0.46471715, 0.308726877, -0.8298949, -0.402054876, 0.908631086, 0.112878203),i/100)
  1001. char.Torso["RBone1"].C1 = char.Torso["RBone1"].C1:Lerp(CFrame.new(0.0670000017, 0.305000007, 0, 0.752464771, -0.658632517, 0, 0.57641834, 0.658537865, 0.483807534, -0.318651408, -0.364048123, 0.875174403),i/100)
  1002. char.Torso["RBone2"].C1 = char.Torso["RBone2"].C1:Lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i/100)
  1003. char.Torso["RBoneHand"].C1 = char.Torso["RBoneHand"].C1:Lerp(CFrame.new(0.31099999, -0.592999995, -0.187000006, 0.906713843, 0.322403491, 0.27189362, 0, 0.64468497, -0.764448345, -0.421746463, 0.693135917, 0.584544778),i/100)
  1004. wait()
  1005. end
  1006. for i = 1,20,.5 do --OG POS
  1007. if state ~= "TransIdle" then break end
  1008. char.HumanoidRootPart["Torso"].C1 = char.HumanoidRootPart["Torso"].C1:Lerp(CFrame.new(0.00900000334, -0.694999993, 0, 0.935831666, 0, -0.352447331, 0, 1, 0, 0.352447331, 0, 0.935831666),i/100)
  1009. char.Torso["Head"].C1 = char.Torso["Head"].C1:Lerp(CFrame.new(0, 0, -0.0470000021, 0.932780027, -0.0073428303, 0.360371411, 0.0158635247, 0.999660075, -0.0206921175, -0.360096961, 0.0250179321, 0.932579398),i/100)
  1010. char.Torso["Left Arm"].C1 = char.Torso["Left Arm"].C1:Lerp(CFrame.new(0.0119999945, -0.0989999771, -0.0259999633, 0.953588724, -0.114257872, 0.278592318, 0.169170648, 0.968679905, -0.181770369, -0.249098092, 0.220463797, 0.943051398),i/100)
  1011. char.Torso["Right Arm"].C1 = char.Torso["Right Arm"].C1:Lerp(CFrame.new(-0.138999984, 0.755999982, 0.553000033, 0.549539685, -0.485859394, -0.679666698, 0.78908205, 0.569134772, 0.231160864, 0.274510205, -0.66334486, 0.696144998),i/100)
  1012. char.Torso["Left Leg"].C1 = char.Torso["Left Leg"].C1:Lerp(CFrame.new(0, 0, 0, 0.831290603, 0, -0.555838168, 0, 1, 0, 0.555838168, 0, 0.831290603),i/100)
  1013. char.Torso["Right Leg"].C1 = char.Torso["Right Leg"].C1:Lerp(CFrame.new(0.0169999972, -0.611999989, 0.600000024, 0.907057285, 0, 0.421007216, 0, 1, 0, -0.421007216, 0, 0.907057285),i/100)
  1014. char.Torso["LBone1"].C1 = char.Torso["LBone1"].C1:Lerp(CFrame.new(0, 0.382999986, -0.064000003, 1, 0, 0, 0, 0.931965172, 0.362547845, 0, -0.362547845, 0.931965172),i/100)
  1015. char.Torso["LBone2"].C1 = char.Torso["LBone2"].C1:Lerp(CFrame.new(0.238000005, -0.0279999971, 0, 0.974120438, 0, 0.226029813, 0, 1, 0, -0.226029813, 0, 0.974120438),i/100)
  1016. char.Torso["LBoneHand"].C1 = char.Torso["LBoneHand"].C1:Lerp(CFrame.new(0.324000001, -0.609000027, -0.231999993, 0.788916826, 0.281206846, 0.546381593, 0.292753607, 0.609765172, -0.736533582, -0.540282786, 0.741019011, 0.398729682),i/100)
  1017. char.Torso["RBone1"].C1 = char.Torso["RBone1"].C1:Lerp(CFrame.new(0.0670000017, 0.465000004, 0, 0.752464771, -0.658632517, 0, 0.497680485, 0.568582654, 0.655002236, -0.431405783, -0.492866099, 0.755626976),i/100)
  1018. char.Torso["RBone2"].C1 = char.Torso["RBone2"].C1:Lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i/100)
  1019. char.Torso["RBoneHand"].C1 = char.Torso["RBoneHand"].C1:Lerp(CFrame.new(-0.19600004, -0.592999995, -0.187000006, 0.913164496, -0.311582476, -0.262767971, 0, 0.64468497, -0.764448345, 0.407591254, 0.698067188, 0.588703454),i/100)
  1020. wait()
  1021. end
  1022.  
  1023. elseif state == "TransWalk" then
  1024. for i = 1,7 do --ALTER
  1025. if state ~= "TransWalk" then break end
  1026. char.HumanoidRootPart["Torso"].C1 = char.HumanoidRootPart["Torso"].C1:Lerp(CFrame.new(0.00900000334, -0.492999971, 0, 0.999975502, 0, 0.00700038671, 0.0036541482, 0.852950156, -0.521979511, -0.00597098097, 0.521992326, 0.852929235),i/10)
  1027. char.Torso["Head"].C1 = char.Torso["Head"].C1:Lerp(CFrame.new(0, 0, -0.148000002, 0.998878598, -0.0315804854, 0.0352746546, 0.0100686233, 0.869689703, 0.49349612, -0.0462628342, -0.492587507, 0.869032383),i/10)
  1028. char.Torso["Left Arm"].C1 = char.Torso["Left Arm"].C1:Lerp(CFrame.new(0.0119999945, 0.0840000212, -0.0259999633, 0.953588724, -0.114257872, 0.278592318, 0.169170648, 0.968679905, -0.181770369, -0.249098092, 0.220463797, 0.943051398),i/10)
  1029. char.Torso["Right Arm"].C1 = char.Torso["Right Arm"].C1:Lerp(CFrame.new(-0.138999984, 0.755999982, 0.382000029, 0.549539685, -0.485859394, -0.679666698, 0.78908205, 0.569134772, 0.231160864, 0.274510205, -0.66334486, 0.696144998),i/10)
  1030. char.Torso["Left Leg"].C1 = char.Torso["Left Leg"].C1:Lerp(CFrame.new(0, 0.182999998, -0.48300001, 0.997798383, 0, -0.0663221478, -0.0573365204, 0.502606273, -0.862612128, 0.0333339274, 0.864515424, 0.501499772),i/10)
  1031. char.Torso["Right Leg"].C1 = char.Torso["Right Leg"].C1:Lerp(CFrame.new(0.0169999972, -0.256000012, 0.0780000091, 0.925583422, 0.263819486, 0.271467328, -0.0805623382, 0.83799237, -0.539702177, -0.369871557, 0.477669418, 0.796885848),i/10)
  1032. char.Torso["LBone1"].C1 = char.Torso["LBone1"].C1:Lerp(CFrame.new(0, 0.382999986, -0.064000003, 1, 0, 0, 0, 0.931965172, 0.362547845, 0, -0.362547845, 0.931965172),i/10)
  1033. char.Torso["LBone2"].C1 = char.Torso["LBone2"].C1:Lerp(CFrame.new(0.238000005, 0.213, 0, 0.974120438, 0, 0.226029813, -0.0473801419, 0.977783144, 0.204194158, -0.221008137, -0.209619001, 0.952478528),i/10)
  1034. char.Torso["LBoneHand"].C1 = char.Torso["LBoneHand"].C1:Lerp(CFrame.new(0.324000001, -0.736000061, -0.404999971, 0.788916826, 0.281206846, 0.546381593, 0.46471715, 0.308726877, -0.8298949, -0.402054876, 0.908631086, 0.112878203),i/10)
  1035. char.Torso["RBone1"].C1 = char.Torso["RBone1"].C1:Lerp(CFrame.new(0.0670000017, -0.601999998, -0.468000054, 0.0434085429, -0.974861622, -0.218541369, 0.794642568, 0.166272491, -0.583863616, 0.605523646, -0.148317561, 0.781884313),i/10)
  1036. char.Torso["RBone2"].C1 = char.Torso["RBone2"].C1:Lerp(CFrame.new(0, 0.574999988, -0.449000001, 1, 0, 0, 0, 0.862713277, 0.505693376, 0, -0.505693376, 0.862713277),i/10)
  1037. char.Torso["RBoneHand"].C1 = char.Torso["RBoneHand"].C1:Lerp(CFrame.new(-0.129000008, -0.545000017, -0.0429999828, 0.845284462, 0.475916624, -0.242894083, -0.496416003, 0.531333983, -0.686480403, -0.197649539, 0.700847745, 0.685381055),i/10)
  1038. wait()
  1039. end
  1040. end
  1041. end
  1042. --END OF ANIMATIONS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement