Hugo1234cool

Untitled

Mar 10th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 72.19 KB | None | 0 0
  1. local p =owner
  2. local char = p.Character
  3. local mouse = p:GetMouse()
  4. local larm = char["Left Arm"]
  5. local rarm = char["Right Arm"]
  6. local lleg = char["Left Leg"]
  7. local rleg = char["Right Leg"]
  8. local hed = char.Head
  9. local Torso = char.Torso
  10. local hum = char.Humanoid
  11. local cam = game.Workspace.CurrentCamera
  12. local root = char.HumanoidRootPart
  13. local deb = false
  14. local shot = 0
  15. local potential = false
  16. local debris=game:service"Debris"
  17. local l = game:GetService("Lighting")
  18. local rs = game:GetService("RunService").RenderStepped
  19. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  20. math.randomseed(os.time())
  21. for i,v in pairs(char:children()) do
  22. if v:IsA("Accessory") then
  23. v:Destroy()
  24. end
  25. end
  26. char["Body Colors"].HeadColor = BrickColor.new("1003")
  27. char["Body Colors"].LeftArmColor = BrickColor.new("1003")
  28. char["Body Colors"].RightArmColor = BrickColor.new("1003")
  29. char["Body Colors"].TorsoColor = BrickColor.new("1003")
  30. char["Body Colors"].RightLegColor = BrickColor.new("1003")
  31. char["Body Colors"].LeftLegColor = BrickColor.new("1003")
  32. Player=owner
  33. Character=Player.Character
  34. PlayerGui=Player.PlayerGui
  35. Backpack=Player.Backpack
  36. Torso=Character.Torso
  37. Head=Character.Head
  38. Humanoid=Character.Humanoid
  39. Mouse=Player:GetMouse()
  40. RootPart = Character.HumanoidRootPart
  41. RootJoint = RootPart.RootJoint
  42. LeftArm=Character["Left Arm"]
  43. LeftLeg=Character["Left Leg"]
  44. RightArm=Character["Right Arm"]
  45. RightLeg=Character["Right Leg"]
  46. LS=Torso["Left Shoulder"]
  47. LH=Torso["Left Hip"]
  48. RS=Torso["Right Shoulder"]
  49. RH=Torso["Right Hip"]
  50. Neck=Torso.Neck
  51. it=Instance.new
  52. vt=Vector3.new
  53. cf=CFrame.new
  54. euler=CFrame.fromEulerAnglesXYZ
  55. angles=CFrame.Angles
  56. local decreaseatk=0
  57. local decreasedef=0
  58. local decreasemvmt=0
  59. local Anim="Idle"
  60. local Effects={}
  61. local armorparts={}
  62. local armorwelds={}
  63. local weaponparts={}
  64. local weaponwelds={}
  65. local necko=euler(0,0,0)*cf(0,1,0)
  66. local attack=false
  67. local jump=false
  68. local start=false
  69. local move=10
  70. local hitfloor,posfloor=nil,nil
  71. local run=Instance.new("NumberValue")
  72. run.Name="DecreaseMvmt"
  73. run.Value=-1.2
  74. local bName="Sthomas"
  75. local MainColor=BrickColor.new("Black")
  76. local SubColor=BrickColor.new("Bright blue")
  77. --[[if script:findFirstChild("SiegmundHealth")~=nil then
  78. for _,c in pairs(game.Players:children()) do
  79. d=script.SiegmundHealth:Clone()
  80. d.Parent=c.PlayerGui
  81. end
  82. end]]
  83.  
  84.  
  85.  
  86.  
  87. function NoOutline(Part)
  88. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  89. end
  90. Character.Animate:Remove()
  91.  
  92. Character.Humanoid.Animator:Remove()
  93. local Create = LoadLibrary("RbxUtility").Create
  94.  
  95. ArtificialHB = Create("BindableEvent", script){
  96. Parent = script,
  97. Name = "Heartbeat",
  98. }--https://github.com/Mokiros/roblox-FE-compatibility
  99. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  100. local Player,game,owner = owner,game
  101. local RealPlayer = Player
  102. do
  103. print("FE Compatibility code V2 by Mokiros")
  104. local RealPlayer = RealPlayer
  105. script.Parent = RealPlayer.Character
  106.  
  107. --Fake event to make stuff like Mouse.KeyDown work
  108. local Disconnect_Function = function(this)
  109. this[1].Functions[this[2]] = nil
  110. end
  111. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  112. local FakeEvent_Metatable = {__index={
  113. Connect = function(this,f)
  114. local i = tostring(math.random(0,10000))
  115. while this.Functions[i] do
  116. i = tostring(math.random(0,10000))
  117. end
  118. this.Functions[i] = f
  119. return setmetatable({this,i},Disconnect_Metatable)
  120. end
  121. }}
  122. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  123. local function fakeEvent()
  124. return setmetatable({Functions={}},FakeEvent_Metatable)
  125. end
  126.  
  127. --Creating fake input objects with fake variables
  128. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  129. FakeMouse.keyUp = FakeMouse.KeyUp
  130. FakeMouse.keyDown = FakeMouse.KeyDown
  131. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  132. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  133. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  134. end}
  135. --Merged 2 functions into one by checking amount of arguments
  136. CAS.UnbindAction = CAS.BindAction
  137.  
  138. --This function will trigger the events that have been :Connect()'ed
  139. local function TriggerEvent(self,ev,...)
  140. for _,f in pairs(self[ev].Functions) do
  141. f(...)
  142. end
  143. end
  144. FakeMouse.TriggerEvent = TriggerEvent
  145. UIS.TriggerEvent = TriggerEvent
  146.  
  147. --Client communication
  148. local Event = Instance.new("RemoteEvent")
  149. Event.Name = "UserInput_Event"
  150. Event.OnServerEvent:Connect(function(plr,io)
  151. if plr~=RealPlayer then return end
  152. FakeMouse.Target = io.Target
  153. FakeMouse.Hit = io.Hit
  154. if not io.isMouse then
  155. local b = io.UserInputState == Enum.UserInputState.Begin
  156. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  157. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  158. end
  159. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  160. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  161. end
  162. for _,t in pairs(CAS.Actions) do
  163. for _,k in pairs(t.Keys) do
  164. if k==io.KeyCode then
  165. t.Function(t.Name,io.UserInputState,io)
  166. end
  167. end
  168. end
  169. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  170. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  171. end
  172. end)
  173. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  174. local Mouse = owner:GetMouse()
  175. local UIS = game:GetService("UserInputService")
  176. local input = function(io,RobloxHandled)
  177. if RobloxHandled then return end
  178. --Since InputObject is a client-side instance, we create and pass table instead
  179. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  180. end
  181. UIS.InputBegan:Connect(input)
  182. UIS.InputEnded:Connect(input)
  183.  
  184. local h,t
  185. --Give the server mouse data every second frame, but only if the values changed
  186. --If player is not moving their mouse, client won't fire events
  187. local HB = game:GetService("RunService").Heartbeat
  188. while true do
  189. if h~=Mouse.Hit or t~=Mouse.Target then
  190. h,t=Mouse.Hit,Mouse.Target
  191. Event:FireServer({isMouse=true,Target=t,Hit=h})
  192. end
  193. --Wait 2 frames
  194. for i=1,2 do
  195. HB:Wait()
  196. end
  197. end]==],script)
  198.  
  199. ----Sandboxed game object that allows the usage of client-side methods and services
  200. --Real game object
  201. local RealGame = game
  202.  
  203. --Metatable for fake service
  204. local FakeService_Metatable = {
  205. __index = function(self,k)
  206. local s = rawget(self,"_RealService")
  207. if s then
  208. return typeof(s[k])=="function"
  209. and function(_,...)return s[k](s,...)end or s[k]
  210. end
  211. end,
  212. __newindex = function(self,k,v)
  213. local s = rawget(self,"_RealService")
  214. if s then s[k]=v end
  215. end
  216. }
  217. local function FakeService(t,RealService)
  218. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  219. return setmetatable(t,FakeService_Metatable)
  220. end
  221.  
  222. --Fake game object
  223. local FakeGame = {
  224. GetService = function(self,s)
  225. return rawget(self,s) or RealGame:GetService(s)
  226. end,
  227. Players = FakeService({
  228. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  229. },"Players"),
  230. UserInputService = FakeService(UIS,"UserInputService"),
  231. ContextActionService = FakeService(CAS,"ContextActionService"),
  232. RunService = FakeService({
  233. _btrs = {},
  234. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  235. BindToRenderStep = function(self,name,_,fun)
  236. self._btrs[name] = self.Heartbeat:Connect(fun)
  237. end,
  238. UnbindFromRenderStep = function(self,name)
  239. self._btrs[name]:Disconnect()
  240. end,
  241. },"RunService")
  242. }
  243. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  244. FakeGame.service = FakeGame.GetService
  245. FakeService(FakeGame,game)
  246. --Changing owner to fake player object to support owner:GetMouse()
  247. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  248. end
  249.  
  250. script:WaitForChild("Heartbeat")
  251.  
  252. frame = 1 / 30
  253. tf = 0
  254. allowframeloss = false
  255. tossremainder = false
  256. lastframe = tick()
  257. script.Heartbeat:Fire()
  258.  
  259. game:GetService("RunService").Heartbeat:connect(function(s, p)
  260. tf = tf + s
  261. if tf >= frame then
  262. if allowframeloss then
  263. script.Heartbeat:Fire()
  264. lastframe = tick()
  265. else
  266. for i = 1, math.floor(tf / frame) do
  267. script.Heartbeat:Fire()
  268. end
  269. lastframe = tick()
  270. end
  271. if tossremainder then
  272. tf = 0
  273. else
  274. tf = tf - frame * math.floor(tf / frame)
  275. end
  276. end
  277. end)
  278.  
  279. function swait(num)
  280. if num == 0 or num == nil then
  281. ArtificialHB.Event:wait()
  282. else
  283. for i = 0, num do
  284. ArtificialHB.Event:wait()
  285. end
  286. end
  287. end
  288.  
  289. --[[frame,t,lastframe = 1/30,0,tick()
  290. allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
  291. tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
  292.  
  293. swait = function(dt)
  294. if dt == nil then
  295. dt = frame
  296. elseif dt < frame then
  297. dt = frame
  298. elseif dt > frame then
  299. --round this out into frames
  300. dt = math.floor(dt/frame)
  301. end
  302. local timetomeet = tick() + dt
  303. end]] --maybe later
  304.  
  305. --30hz Pacemaker
  306.  
  307. script:WaitForChild("Heartbeat")
  308.  
  309. frame = 1/30
  310. tf = 0
  311. allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
  312. tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
  313. lastframe = tick()
  314. script.Heartbeat:Fire() --ayy lmao
  315.  
  316. game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
  317. tf = tf + s
  318. if tf >= frame then
  319. if allowframeloss then
  320. script.Heartbeat:Fire()
  321. lastframe=tick()
  322. else
  323. --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
  324. for i=1, math.floor(tf/frame) do
  325. script.Heartbeat:Fire()
  326. end
  327. lastframe=tick()
  328. end
  329. if tossremainder then
  330. tf = 0
  331. else
  332. tf = tf - frame * math.floor(tf/frame)
  333. end
  334. end
  335. end)
  336.  
  337. function clerp(a,b,t)
  338. local qa = {QuaternionFromCFrame(a)}
  339. local qb = {QuaternionFromCFrame(b)}
  340. local ax, ay, az = a.x, a.y, a.z
  341. local bx, by, bz = b.x, b.y, b.z
  342. local _t = 1-t
  343. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  344. end
  345.  
  346. function QuaternionFromCFrame(cf)
  347. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  348. local trace = m00 + m11 + m22
  349. if trace > 0 then
  350. local s = math.sqrt(1 + trace)
  351. local recip = 0.5/s
  352. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  353. else
  354. local i = 0
  355. if m11 > m00 then
  356. i = 1
  357. end
  358. if m22 > (i == 0 and m00 or m11) then
  359. i = 2
  360. end
  361. if i == 0 then
  362. local s = math.sqrt(m00-m11-m22+1)
  363. local recip = 0.5/s
  364. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  365. elseif i == 1 then
  366. local s = math.sqrt(m11-m22-m00+1)
  367. local recip = 0.5/s
  368. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  369. elseif i == 2 then
  370. local s = math.sqrt(m22-m00-m11+1)
  371. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  372. end
  373. end
  374. end
  375.  
  376. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  377. local xs, ys, zs = x + x, y + y, z + z
  378. local wx, wy, wz = w*xs, w*ys, w*zs
  379. local xx = x*xs
  380. local xy = x*ys
  381. local xz = x*zs
  382. local yy = y*ys
  383. local yz = y*zs
  384. local zz = z*zs
  385. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  386. end
  387.  
  388. function QuaternionSlerp(a, b, t)
  389. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  390. local startInterp, finishInterp;
  391. if cosTheta >= 0.0001 then
  392. if (1 - cosTheta) > 0.0001 then
  393. local theta = math.acos(cosTheta)
  394. local invSinTheta = 1/math.sin(theta)
  395. startInterp = math.sin((1-t)*theta)*invSinTheta
  396. finishInterp = math.sin(t*theta)*invSinTheta
  397. else
  398. startInterp = 1-t
  399. finishInterp = t
  400. end
  401. else
  402. if (1+cosTheta) > 0.0001 then
  403. local theta = math.acos(-cosTheta)
  404. local invSinTheta = 1/math.sin(theta)
  405. startInterp = math.sin((t-1)*theta)*invSinTheta
  406. finishInterp = math.sin(t*theta)*invSinTheta
  407. else
  408. startInterp = t-1
  409. finishInterp = t
  410. end
  411. end
  412. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  413. end
  414.  
  415. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  416. local fp=it("Part")
  417. fp.formFactor=formfactor
  418. fp.Parent=parent
  419. fp.Reflectance=reflectance
  420. fp.Transparency=transparency
  421. fp.CanCollide=false
  422. fp.Locked=true
  423. fp.BrickColor=brickcolor
  424. fp.Name=name
  425. fp.Size=size
  426. NoOutline(fp)
  427. fp.Material="SmoothPlastic"
  428. fp:BreakJoints()
  429. return fp
  430. end
  431.  
  432. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  433. local mesh=it(Mesh)
  434. mesh.Parent=part
  435. if Mesh=="SpecialMesh" then
  436. mesh.MeshType=meshtype
  437. if meshid~="nil" then
  438. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  439. end
  440. end
  441. mesh.Offset=offset
  442. mesh.Scale=scale
  443. return mesh
  444. end
  445.  
  446. function weld(parent,part0,part1,c0)
  447. local weld=it("Motor")
  448. weld.Parent=parent
  449. weld.Part0=part0
  450. weld.Part1=part1
  451. weld.C0=c0
  452. return weld
  453. end
  454.  
  455. function gui(GuiType,parent,text,backtrans,backcol,pos,size,image)
  456. local gui=it(GuiType)
  457. gui.Parent=parent
  458. gui.BackgroundTransparency=backtrans
  459. gui.BackgroundColor3=backcol
  460. gui.SizeConstraint="RelativeXY"
  461. gui.Position=pos
  462. gui.Size=size
  463. if GuiType=="TextLabel" then
  464. gui.Text=text
  465. gui.TextXAlignment="Center"
  466. gui.TextYAlignment="Center"
  467. gui.Font="SourceSans"
  468. gui.FontSize="Size14"
  469. gui.TextWrapped=false
  470. gui.TextStrokeTransparency=0
  471. gui.TextColor=BrickColor.new("White")
  472. elseif GuiType=="ImageLabel" then
  473. gui.Image="rbxassetid://"..image
  474. gui.ImageColor3=backcol
  475. end
  476. return gui
  477. end
  478.  
  479. local Characte=Instance.new("Model")
  480. Characte.Parent=Character
  481. Characte.Name=bName
  482.  
  483.  
  484. --local Torso=part(0,Character,0,0,MainColor,"Torso",vt(2,2,1))
  485. local Torsoc=part(0,Character,0,0,SubColor,"Torso Copy",vt(2,2,1))
  486. --local LeftArm=part(0,Character,0,0,MainColor,"Left Arm",vt(1,2,1))
  487. local LeftArmc=part(0,Character,0,0,SubColor,"Left Arm Copy",vt(1,2,1))
  488. --local RightArm=part(0,Character,0,0,MainColor,"Right Arm",vt(1,2,1))
  489. local RightArmc=part(0,Character,0,0,SubColor,"Right Arm Copy",vt(1,2,1))
  490. --local LeftLeg=part(0,Character,0,0,MainColor,"Left Leg",vt(1,2,1))
  491. local LeftLegc=part(0,Character,0,0,SubColor,"Left Leg Copy",vt(1,2,1))
  492. --local RightLeg=part(0,Character,0,0,MainColor,"Right Leg",vt(1,2,1))
  493. local RightLegc=part(0,Character,0,0,SubColor,"Right Leg Copy",vt(1,2,1))
  494.  
  495.  
  496. --local Head=part(0,Character,0,0,BrickColor.new("Pastel brown"),"Head",vt(2,1,1))
  497. --[[local Torso=part(0,Character,0,0,MainColor,"Torso",vt(2,2,1))
  498. local Torsoc=part(0,Character,0,0,SubColor,"Torso Copy",vt(2,2,1))
  499. local LeftArm=part(0,Character,0,0,SubColor,"Left Arm",vt(1,2,1))
  500. local LeftArmc=part(0,Character,0,0,MainColor,"Left Arm Copy",vt(1,2,1))
  501. local RightArm=part(0,Character,0,0,SubColor,"Right Arm",vt(1,2,1))
  502. local RightArmc=part(0,Character,0,0,MainColor,"Right Arm Copy",vt(1,2,1))
  503. local LeftLeg=part(0,Character,0,0,SubColor,"Left Leg",vt(1,2,1))
  504. local LeftLegc=part(0,Character,0,0,MainColor,"Left Leg Copy",vt(1,2,1))
  505. local RightLeg=part(0,Character,0,0,SubColor,"Right Leg",vt(1,2,1))
  506. local RightLegc=part(0,Character,0,0,MainColor,"Right Leg Copy",vt(1,2,1))]]
  507. --local RootPart=part(0,Character,0,1,MainColor,"HumanoidRootPart",vt(2,2,1))
  508. local Cape=part(0,Character,0,0,BrickColor.new("Bright blue"),"Hat",vt())
  509. Head.CanCollide=true
  510. Torso.CanCollide=true
  511. LeftArm.CanCollide=true
  512. RightArm.CanCollide=true
  513. LeftLeg.CanCollide=true
  514. RightLeg.CanCollide=true
  515. RootPart.CanCollide=false
  516. Head.face:Remove()
  517. face=Instance.new("Decal",Head)
  518. face.Face="Front"
  519. --face.Texture="http://www.roblox.com/asset/?id="
  520. face.Texture="http://www.roblox.com/asset/?id="
  521.  
  522. local HMesh=mesh("SpecialMesh",Head,"Head","nil",vt(0,0,0),vt(1.25,1.25,1.25))
  523. local TMsh=mesh("SpecialMesh",Torso,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(1.8,1,.8))
  524. local LAMsh=mesh("SpecialMesh",LeftArm,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(.8,.8,.8))
  525. local RAMsh=mesh("SpecialMesh",RightArm,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(.8,.8,.8))
  526. local LLMsh=mesh("SpecialMesh",LeftLeg,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(.8,1,.8))
  527. local RLMsh=mesh("SpecialMesh",RightLeg,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(.8,1,.8))
  528. local TcMsh=mesh("SpecialMesh",Torsoc,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(-2,-1,-1))
  529. local LAcMsh=mesh("SpecialMesh",LeftArmc,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(-1,-1,-1))
  530. local RAcMsh=mesh("SpecialMesh",RightArmc,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(-1,-1,-1))
  531. local LLcMsh=mesh("SpecialMesh",LeftLegc,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(-1,-1.2,-1))
  532. local RLcMsh=mesh("SpecialMesh",RightLegc,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(-1,-1.2,-1))
  533. TMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  534. LAMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  535. RAMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  536. LLMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  537. RLMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  538. TcMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  539. LAcMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  540. RAcMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  541. LLcMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  542. RLcMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  543. local Cmsh=mesh("SpecialMesh",Cape,"FileMesh","http://www.roblox.com/asset/?id=250281794",vt(0,0,0),vt(1,1,1))
  544.  
  545. --[[local Neck=weld(Torso,Torso,Head,cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
  546. Neck.C1=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)]]
  547. local Neck=weld(Torso,Torso,Head,euler(0,0,0)*cf(0,1,0))
  548. Neck.C1=cf(0,-.5,0)
  549. local RW=weld(Torso,Torso,RightArm,cf(1.5,.5,0))
  550. RW.C1=cf(0,.5,0)
  551. local RWc=weld(Torso,RightArm,RightArmc,cf(0,0,0))
  552. local LW=weld(Torso,Torso,LeftArm,cf(-1.5,.5,0))
  553. LW.C1=cf(0,.5,0)
  554. local LWc=weld(Torso,LeftArm,LeftArmc,cf(0,0,0))
  555. local RH=weld(Torso,Torso,RightLeg,cf(.5,-1,0))
  556. RH.C1=cf(0,1,0)
  557. local RHc=weld(Torso,RightLeg,RightLegc,cf(0,0,0))
  558. local LH=weld(Torso,Torso,LeftLeg,cf(-.5,-1,0))
  559. LH.C1=cf(0,1,0)
  560. local LHc=weld(Torso,LeftLeg,LeftLegc,cf(0,0,0))
  561. local RootJoint=weld(Torso,Torso,RootPart,cf(0,0,0))
  562. local RootJointc=weld(Torso,Torso,Torsoc,cf(0,0,0))
  563. --local Cwld=weld(Torso,Cape,Head,euler(0,0,0)*cf(0,2,-.3))
  564. local Cwld=weld(Torso,Cape,Torso,euler(0,0,0)*cf(0,.5,-.3))
  565. --Torso.CFrame=cf(math.random(-5000,5000)/100,math.random(-5000,5000)/100,math.random(-5000,5000)/100)
  566. --Torso.CFrame=cf(0,0,0)
  567. --Torso.CFrame=workspace.Map.BossSpawn.CFrame*cf(0,5,0)
  568.  
  569. local hitbox=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  570. --hitbox.Anchored=true
  571. local hitbox2=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  572. hitbox2.Anchored=true
  573. local hitboxCF=cf(0,0,0)
  574.  
  575. --[[local Humanoid=Instance.new("Humanoid")
  576. Humanoid.Parent=Character
  577. TehHealth=700
  578. --TehHealth=2000
  579. Humanoid.MaxHealth=TehHealth
  580. Humanoid.Health=TehHealth
  581. coroutine.resume(coroutine.create(function()
  582. for i=1,20 do
  583. wait()
  584. Humanoid.Health=Humanoid.MaxHealth
  585. end
  586. Humanoid:TakeDamage(1)
  587. end))]]
  588. local Stats=Instance.new("BoolValue")
  589. Stats.Name="Stats"
  590. Stats.Parent=Character
  591. local Atk=Instance.new("NumberValue")
  592. Atk.Name="Damage"
  593. Atk.Parent=Stats
  594. Atk.Value=1
  595. local Def=Instance.new("NumberValue")
  596. Def.Name="Defense"
  597. Def.Parent=Stats
  598. Def.Value=1
  599. local Mvmt=Instance.new("NumberValue")
  600. Mvmt.Name="Movement"
  601. Mvmt.Parent=Stats
  602. Mvmt.Value=1
  603. local Block=Instance.new("BoolValue")
  604. Block.Name="Block"
  605. Block.Parent=Stats
  606. Block.Value=false
  607. local Stun=Instance.new("NumberValue")
  608. Stun.Name="Stun"
  609. Stun.Parent=Stats
  610. Stun.Value=0
  611. local StunT=Instance.new("NumberValue")
  612. StunT.Name="StunThreshold"
  613. StunT.Parent=Stats
  614. StunT.Value=100
  615. local Rooted=Instance.new("BoolValue")
  616. Rooted.Name="Rooted"
  617. Rooted.Parent=Stats
  618. Rooted.Value=false
  619. local Stunned=Instance.new("BoolValue")
  620. Stunned.Name="Stunned"
  621. Stunned.Parent=Stats
  622. Stunned.Value=false
  623. local Stagger=Instance.new("BoolValue")
  624. Stagger.Name="Stagger"
  625. Stagger.Parent=Stats
  626. Stagger.Value=false
  627. local StaggerHit=Instance.new("BoolValue")
  628. StaggerHit.Name="StaggerHit"
  629. StaggerHit.Parent=Stats
  630. StaggerHit.Value=false
  631. local RecentEnemy=Instance.new("ObjectValue")
  632. RecentEnemy.Name="RecentEnemy"
  633. RecentEnemy.Parent=Stats
  634. RecentEnemy.Value=nil
  635. local Decrease=Instance.new("BoolValue")
  636. Decrease.Name="Decrease"
  637. Decrease.Parent=Stats
  638. Decrease.Value=false
  639. local mana=Instance.new("NumberValue")
  640. mana.Name="Mana"
  641. mana.Parent=Stats
  642. mana.Value=0
  643. local boss=Instance.new("BoolValue")
  644. boss.Name="Boss"
  645. boss.Parent=Stats
  646. boss.Value=true
  647. local alive=Instance.new("BoolValue")
  648. alive.Name="Alive"
  649. alive.Parent=Character
  650. alive.Value=true
  651. local btarget=Instance.new("ObjectValue")
  652. btarget.Name="Target"
  653. btarget.Parent=Stats
  654. btarget.Value=nil
  655. local passive1=Instance.new("NumberValue",Decrease)
  656. passive1.Name="DecreaseAtk"
  657. passive1.Value=-.4
  658. local passive2=Instance.new("NumberValue",Decrease)
  659. passive2.Name="DecreaseDef"
  660. passive2.Value=-.1
  661. local passive3=Instance.new("NumberValue",Decrease)
  662. passive3.Name="DecreaseMvmt"
  663. passive3.Value=.1
  664.  
  665. so = function(id,par,vol,pit)
  666. local sou = Instance.new("Sound",par or workspace)
  667. sou.Volume=1.5
  668. sou.Pitch=pit or 1
  669. sou.SoundId="http://www.roblox.com/asset/?id="..id
  670. --swait()
  671. sou:play()
  672. game:GetService("Debris"):AddItem(sou,6)
  673. end
  674.  
  675. local function CFrameFromTopBack(at, top, back)
  676. local right = top:Cross(back)
  677. return CFrame.new(at.x, at.y, at.z,
  678. right.x, top.x, back.x,
  679. right.y, top.y, back.y,
  680. right.z, top.z, back.z)
  681. end
  682.  
  683. function Triangle(a, b, c)
  684. local edg1 = (c-a):Dot((b-a).unit)
  685. local edg2 = (a-b):Dot((c-b).unit)
  686. local edg3 = (b-c):Dot((a-c).unit)
  687. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  688. a, b, c = a, b, c
  689. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  690. a, b, c = b, c, a
  691. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  692. a, b, c = c, a, b
  693. else
  694. assert(false, "unreachable")
  695. end
  696.  
  697. local len1 = (c-a):Dot((b-a).unit)
  698. local len2 = (b-a).magnitude - len1
  699. local width = (a + (b-a).unit*len1 - c).magnitude
  700.  
  701. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  702.  
  703. local list = {}
  704.  
  705. if len1 > 0.01 then
  706. local w1 = Instance.new('WedgePart', m)
  707. w1.Name = "Triangle"
  708. game:GetService("Debris"):AddItem(w1,5)
  709. w1.Material = "SmoothPlastic"
  710. w1.FormFactor = 'Custom'
  711. w1.BrickColor = BrickColor.new("Teal")
  712. w1.Transparency = 0
  713. w1.Reflectance = 0
  714. w1.Material = "SmoothPlastic"
  715. w1.CanCollide = false
  716. NoOutline(w1)
  717. local sz = Vector3.new(0.2, width, len1)
  718. w1.Size = sz
  719. local sp = Instance.new("SpecialMesh",w1)
  720. sp.MeshType = "Wedge"
  721. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  722. w1:BreakJoints()
  723. w1.Anchored = true
  724. w1.Parent = workspace
  725. w1.Transparency = 0.7
  726. table.insert(Effects,{w1,"Disappear",.05})
  727. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  728. table.insert(list,w1)
  729. end
  730.  
  731. if len2 > 0.01 then
  732. local w2 = Instance.new('WedgePart', m)
  733. w2.Name = "Triangle"
  734. game:GetService("Debris"):AddItem(w2,5)
  735. w2.Material = "SmoothPlastic"
  736. w2.FormFactor = 'Custom'
  737. w2.BrickColor = BrickColor.new("Teal")
  738. w2.Transparency = 0
  739. w2.Reflectance = 0
  740. w2.Material = "SmoothPlastic"
  741. w2.CanCollide = false
  742. NoOutline(w2)
  743. local sz = Vector3.new(0.2, width, len2)
  744. w2.Size = sz
  745. local sp = Instance.new("SpecialMesh",w2)
  746. sp.MeshType = "Wedge"
  747. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  748. w2:BreakJoints()
  749. w2.Anchored = true
  750. w2.Parent = workspace
  751. w2.Transparency = 0.7
  752. table.insert(Effects,{w2,"Disappear",.05})
  753. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  754. table.insert(list,w2)
  755. end
  756. return unpack(list)
  757. end
  758.  
  759. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type)
  760. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(.2,.2,.2))
  761. prt.Anchored=true
  762. prt.CFrame=cframe
  763. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  764. game:GetService("Debris"):AddItem(prt,3)
  765. if Type==1 or Type==nil then
  766. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  767. elseif Type==2 then
  768. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  769. end
  770. end
  771.  
  772. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  773. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(.2,.2,.2))
  774. prt.Anchored=true
  775. prt.CFrame=cframe
  776. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  777. game:GetService("Debris"):AddItem(prt,3)
  778. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  779. end
  780.  
  781. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  782. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(.2,.2,.2))
  783. prt.Anchored=true
  784. prt.CFrame=cframe
  785. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  786. game:GetService("Debris"):AddItem(prt,3)
  787. table.insert(Effects,{prt,"Cylinder2",delay,x3,y3,z3,msh})
  788. end
  789.  
  790. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  791. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  792. prt.Anchored=true
  793. prt.CFrame=cframe*cf(x2,y2,z2)
  794. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  795. game:GetService("Debris"):AddItem(prt,3)
  796. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  797. end
  798.  
  799. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  800. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(.2,.2,.2))
  801. prt.Anchored=true
  802. prt.CFrame=cframe
  803. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  804. game:GetService("Debris"):AddItem(prt,3)
  805. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  806. end
  807.  
  808. function MagicCylinder3(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  809. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(.2,.2,.2))
  810. prt.Anchored=true
  811. prt.CFrame=cframe
  812. local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
  813. game:GetService("Debris"):AddItem(prt,3)
  814. table.insert(Effects,{prt,"Cylinder2",delay,x3,y3,z3,msh})
  815. end
  816.  
  817. function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  818. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(.2,.2,.2))
  819. prt.Anchored=true
  820. prt.CFrame=cframe
  821. local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
  822. game:GetService("Debris"):AddItem(prt,3)
  823. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  824. end
  825.  
  826. function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
  827. local prt=part(3,workspace,0,1,brickcolor,"Effect",vt(.2,.2,.2))
  828. prt.Anchored=true
  829. prt.CFrame=cframe
  830. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
  831. game:GetService("Debris"):AddItem(prt,3)
  832. table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
  833. end
  834.  
  835. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  836. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(.2,.2,.2))
  837. prt.Anchored=true
  838. prt.CFrame=cframe
  839. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  840. game:GetService("Debris"):AddItem(prt,3)
  841. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  842. end
  843.  
  844. --[[local BodGy=Instance.new("BodyGyro")
  845. BodGy.maxTorque=Vector3.new(0,4e+005,0)
  846. BodGy.P=2000
  847. BodGy.D=100
  848. BodGy.Name="SiegmundGyro"
  849. CF=RootPart.CFrame
  850. BodGy.Parent=RootPart
  851. BodGy.cframe=CF]]
  852.  
  853. --[[Neck.C0=euler(0,0,0)*cf(0,3,0)*euler(0,.6,0)*euler(-.2,0,0)
  854. RootJoint.C0=cf(0,-2,0)*euler(0,.6,0)
  855. RW.C0=cf(4.5,1.5,0)*euler(-.4,0,.5)*euler(0,0,0)
  856. RW.C1=cf(0,1.5,0)*euler(0,0,0)
  857. LW.C0=cf(-4.5,1.5,0)*euler(.2,0,-.5)
  858. LW.C1=cf(0,1.5,0)*euler(0,0,0)
  859. RH.C0=cf(1.5,-3,0)*euler(0,-.6,0)*euler(0,0,.1)
  860. RH.C1=cf(0,3,0)*euler(0,0,0)
  861. LH.C0=cf(-1.5,-3,0)*euler(0,.6,0)*euler(.1,0,0)
  862. LH.C1=cf(0,3,0)*euler(0,0,0)]]
  863.  
  864. --[[RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,0.5),.3)
  865. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.2),.3)
  866. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  867. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.3)
  868. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.3)
  869. LH.C0=clerp(LH.C0,cf(-1.1,-.5,-0.5)*euler(-0.2,-1.3,0),.3)]]
  870. function StartAnim()
  871. attack=true
  872. --workspace.CurrentCamera.CameraSubject=Head
  873. Neck.C0=necko*euler(-0.4,0,0)
  874. RootJoint.C0=euler(.2,0,0)
  875. RW.C0=cf(1.5,0.5,0)*euler(-.3,0,0.2)
  876. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  877. LW.C0=cf(-1.5,0.5,0)*euler(-.3,0,-0.2)
  878. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  879. RH.C0=cf(.5,-1,0)*euler(0.4,1.57,0)
  880. LH.C0=cf(-.5,-1,0)*euler(-0.2,-1.57,0)
  881. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,10,Character)
  882. while hitfloor==nil do
  883. swait()
  884. end
  885. print("endderp")
  886. so("http://roblox.com/asset/?id=157878578",Torso,1,0.8)
  887. so("http://roblox.com/asset/?id=2760979",Torso,1,0.4)
  888. MagicWave(BrickColor.new("Medium stone grey"),cf(Torso.Position)*cf(0,-1,0),1,1,1,1.5,1,1.5,0.05)
  889. --MagniDamage(Torso,15,6,8,math.random(20,40),"Knockdown2",Torso,0,1,math.random(8,10),nil,nil,true)
  890. for i=0,1,0.05 do
  891. swait()
  892. Neck.C0=clerp(Neck.C0,necko*euler(-.4,0,0),.3)
  893. RootJoint.C0=clerp(RootJoint.C0,cf(0,1,0)*euler(0,0,0),.3)
  894. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.2),.3)
  895. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.2),.3)
  896. RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(-1.2,1.57,0),.3)
  897. LH.C0=clerp(LH.C0,cf(-.6,-.5,-0.5)*euler(-0.2,-1.3,0),.3)
  898. end
  899. attack=false
  900. end
  901. --[[RW.C0=cf(1.5,0.5,0)*euler(0,0,1.2)
  902. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-1.2)
  903. Neck.C0=necko*euler(-.4,0,0)
  904. RootJoint.C0=cf(0,1,0)*euler(0,0,0)
  905. RH.C0=cf(1,-1,0)*euler(-1.2,1.57,0)
  906. LH.C0=cf(-1.1,-.5,-0.5)*euler(-0.2,-1.3,0)]]
  907.  
  908. local BodGy=Instance.new("BodyGyro")
  909. BodGy.maxTorque=Vector3.new(0,4e+005,0)
  910. BodGy.P=2000
  911. BodGy.D=100
  912. BodGy.Name="SthomasGyro"
  913. CF=RootPart.CFrame
  914. BodGy.Parent=RootPart
  915. BodGy.cframe=CF
  916.  
  917. wait()
  918. print("Sthomas spawned.")
  919.  
  920. function StunAnim()
  921. attack=true
  922. Stunned.Value=true
  923. showDamage(Character,"Stunned","Interrupt")
  924. local dec=Instance.new("NumberValue",Decrease)
  925. dec.Name="DecreaseMvmt"
  926. dec.Value=10
  927. for i=0,1,0.3 do
  928. swait()
  929. Neck.C0=clerp(Neck.C0,necko*euler(-.2,.5,0),.2)
  930. RootJoint.C0=clerp(RootJoint.C0,euler(-.2,3,0),.2)
  931. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,1.3),.2)
  932. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  933. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1,0,.4)*euler(0,-.1,0),.2)
  934. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  935. RH.C0=clerp(RH.C0,cf(.5,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.3),.25)
  936. LH.C0=clerp(LH.C0,cf(-.5,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,0),.25)
  937. end
  938. for i=0,1,0.3 do
  939. swait()
  940. Neck.C0=clerp(Neck.C0,necko*euler(-.3,.5,0),.2)
  941. RootJoint.C0=clerp(RootJoint.C0,cf(0,0,-.5)*euler(-.8,3,0),.2)
  942. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  943. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  944. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1.2,0,.8)*euler(0,-.1,0),.2)
  945. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  946. RH.C0=clerp(RH.C0,cf(.5,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.6),.25)
  947. LH.C0=clerp(LH.C0,cf(-.5,-.8,0)*euler(0,-1.57,0)*euler(.1,0,.7),.25)
  948. end
  949. for i=0,1,0.3 do
  950. swait()
  951. Neck.C0=clerp(Neck.C0,necko*euler(-.3,-1,0),.2)
  952. RootJoint.C0=clerp(RootJoint.C0,cf(0,0,-2)*euler(-1.57,3,0),.2)
  953. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  954. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  955. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8)*euler(0,-.1,0),.2)
  956. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  957. RH.C0=clerp(RH.C0,cf(.5,-.6,0)*euler(0,1.57,0)*euler(-.2,0,.6),.25)
  958. LH.C0=clerp(LH.C0,cf(-.5,-.8,0)*euler(0,-1.57,0)*euler(-.1,0,.3),.25)
  959. end
  960. local gairost=Instance.new("BodyGyro")
  961. gairost.Parent=RootPart
  962. gairost.maxTorque=Vector3.new(4e+005,0,4e+005)*math.huge
  963. gairost.P=20e+003
  964. gairost.cframe=cf(0,0,0)
  965. for i=0,1,0.1 do
  966. swait()
  967. Neck.C0=clerp(Neck.C0,necko*euler(0,-1.57,0),.3)
  968. RootJoint.C0=clerp(RootJoint.C0,cf(0,0,-2.5)*euler(-1.57,3.14,0),.3)
  969. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1.5)*euler(.2,0,0),.3)
  970. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  971. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.5,0,-1.57)*euler(0,0,0),.3)
  972. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  973. RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(0,1.57,0)*euler(-.3,.5,0),.3)
  974. LH.C0=clerp(LH.C0,cf(-.5,-1,0)*euler(0,-1.57,0)*euler(-.1,.2,0),.3)
  975. end
  976. for i=1,200 do
  977. swait()
  978. gairost.cframe=RootPart.CFrame
  979. end
  980. for i=0,1,0.2 do
  981. swait()
  982. Stun.Value=0
  983. gairost.cframe=RootPart.CFrame
  984. Neck.C0=clerp(Neck.C0,necko*euler(0,.2,0),.3)
  985. RootJoint.C0=clerp(RootJoint.C0,cf(0,0,-2)*euler(-1,4,0),.3)
  986. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1)*euler(.2,-1,0),.3)
  987. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  988. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,.2)*euler(0,0,0),.3)
  989. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  990. RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(0,1.57,0)*euler(-.3,.5,.4),.3)
  991. LH.C0=clerp(LH.C0,cf(-.5,-1,-1)*euler(0,-1.57,0)*euler(-.1,.2,1),.3)
  992. end
  993. gairost.Parent=nil
  994. dec.Parent=nil
  995. Stun.Value=0
  996. Stunned.Value=false
  997. attack=false
  998. for i=1,10 do
  999. swait()
  1000. Stun.Value=0
  1001. end
  1002. end
  1003.  
  1004. function PunchSlam()
  1005. attack=true
  1006. for i=0,1,0.1 do
  1007. swait()
  1008. Neck.C0=clerp(Neck.C0,necko*euler(0,-.5,0)*euler(-.2,0,0),.3)
  1009. RootJoint.C0=clerp(RootJoint.C0,euler(0,-.5,0)*euler(.1,0,0)*cf(0,.2,0),.3)
  1010. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,0,.8)*euler(0,0,0),.3)
  1011. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1012. LW.C0=clerp(LW.C0,cf(-1.3,0.5,-.2)*euler(1.4,0,.5)*euler(0,0,0),.3)
  1013. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1014. RH.C0=clerp(RH.C0,cf(.6,-.9,-.2)*euler(0,1.57,0)*euler(0,-.5,-.05),.3)
  1015. LH.C0=clerp(LH.C0,cf(-.6,-.8,-.2)*euler(0,-1.57,0)*euler(0,0,.4),.3)
  1016. end
  1017. Torso.Velocity=RootPart.CFrame.lookVector*move*3
  1018. so("169445092",LeftArm,1,1.2)
  1019. for i=0,1,0.1 do
  1020. swait()
  1021. MagniDamage(LeftArm,2,8,10,0,"Knockdown2",RootPart,.2,2,math.random(6,7),nil,nil)
  1022. --MagniDamage(LeftArm,2,6,8,0,"Normal",RootPart,.3,1,math.random(6,7),nil,nil)
  1023. Neck.C0=clerp(Neck.C0,necko*euler(0,.5,0)*euler(-.1,0,0),.3)
  1024. RootJoint.C0=clerp(RootJoint.C0,euler(0,.5,0)*euler(.2,0,0)*cf(0,.2,1),.3)
  1025. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,1)*euler(0,0,0),.3)
  1026. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1027. --LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.7,0,.2)*euler(0,0,0),.3)
  1028. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1029. RH.C0=clerp(RH.C0,cf(.6,-.9,-.2)*euler(0,1.57,0)*euler(0,.4,-.3),.3)
  1030. LH.C0=clerp(LH.C0,cf(-.6,-.9,-.2)*euler(0,-1.57,0)*euler(0,.5,0),.3)
  1031. if i<.3 then
  1032. LW.C0=clerp(LW.C0,cf(-1.3,0.5,-.2)*euler(1.7,0,-.2)*euler(0,0,0),.3)
  1033. else
  1034. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.2)*euler(1.7,0,.1)*euler(0,0,0),.3)
  1035. end
  1036. end
  1037. if RecentEnemy.Value~=nil then
  1038. Torso.Velocity=vt(0,0,0)
  1039. target,distance=findNearestTorso(Torso.Position)
  1040. if target~=nil then
  1041. BodGy.cframe=cf(Torso.Position,target.Position)
  1042. end
  1043. Torso.Velocity=RootPart.CFrame.lookVector*move*3
  1044. refd=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1045. refd.Anchored=true
  1046. game:GetService("Debris"):AddItem(refd,5)
  1047. so("169445092",RightArm,1,1.2)
  1048. for i=0,1,0.1 do
  1049. swait()
  1050. refd.CFrame=cf(posfloor)
  1051. MagniDamage(LeftArm,4,10,12,math.random(30,35),"Knockdown2",refd,.3,1,math.random(3,4),nil,nil)
  1052. Neck.C0=clerp(Neck.C0,necko*euler(0,-1.57,0),.3)
  1053. RootJoint.C0=clerp(RootJoint.C0,cf(0,0,.2)*euler(0,-1.57,0),.3)
  1054. if i<.6 then
  1055. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.57)*euler(0,3.14,0),.5)
  1056. else
  1057. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.57)*euler(0,3.14,-1.2)*euler(-.5,0,0),.2)
  1058. end
  1059. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1060. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.57)*euler(0,0,1),.3)
  1061. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1062. RH.C0=clerp(RH.C0,cf(.5,-1,.2)*euler(0,1.57,0)*euler(.2,-1.57,0),.2)
  1063. LH.C0=clerp(LH.C0,cf(-.5,-1,-.2)*euler(0,-1.57,0)*euler(-.4,-1.57,0),.2)
  1064. end
  1065. refd.Parent=nil
  1066. --swait(100)
  1067. end
  1068. attack=false
  1069. end
  1070.  
  1071. function SweepCut()
  1072. attack=true
  1073. for i=0,1,0.1 do
  1074. swait()
  1075. Neck.C0=clerp(Neck.C0,necko*euler(0,1.3,0)*euler(-.5,0,0),.3)
  1076. RootJoint.C0=clerp(RootJoint.C0,euler(0,1.3,0)*euler(-.5,0,0)*cf(0,.4,0),.3)
  1077. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.5)*euler(0,0,0),.3)
  1078. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1079. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1)*euler(0,0,0),.3)
  1080. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1081. RH.C0=clerp(RH.C0,cf(.6,-.7,-.4)*euler(0,1.57,0)*euler(-.5,0,0),.3)
  1082. LH.C0=clerp(LH.C0,cf(-.3,-.4,-.7)*euler(0,-1.57,0)*euler(0,0,-.1)*euler(-.7,0,0),.3)
  1083. end
  1084. Torso.Velocity=RootPart.CFrame.lookVector*move*5
  1085. so("169445073",LeftLeg,1,1.2)
  1086. for i=0,1,0.1 do
  1087. swait()
  1088. MagniDamage(LeftLeg,2,7,9,0,"Knockdown2",RootPart,.2,2,math.random(6,7),nil,nil)
  1089. Neck.C0=clerp(Neck.C0,necko*euler(0,1,0)*euler(-.5,0,0),.3)
  1090. RootJoint.C0=clerp(RootJoint.C0,euler(0,1.3,0)*euler(-1,0,0)*cf(0,1.2,0),.3)
  1091. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,0,.3)*euler(0,0,0),.3)
  1092. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1093. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.5,0,1)*euler(0,0,0),.3)
  1094. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1095. RH.C0=clerp(RH.C0,cf(.6,-.7,-.8)*euler(0,1.57,0)*euler(-.3,0,-1.2),.3)
  1096. LH.C0=clerp(LH.C0,cf(-.5,-.8,-.2)*euler(0,-1.57,0)*euler(0,0,-.1)*euler(-.5,0,0),.3)
  1097. end
  1098. Torso.Velocity=vt(0,0,0)
  1099. if RecentEnemy.Value~=nil then
  1100. target,distance=findNearestTorso(Torso.Position)
  1101. if target~=nil then
  1102. BodGy.cframe=cf(Torso.Position,target.Position)
  1103. end
  1104. Torso.Velocity=RootPart.CFrame.lookVector*move*3
  1105. refd=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1106. refd.Anchored=true
  1107. game:GetService("Debris"):AddItem(refd,5)
  1108. so("169445092",RightArm,1,1)
  1109. for i=0,1,0.2 do
  1110. swait()
  1111. refd.CFrame=cf(posfloor)
  1112. MagniDamage(RightArm,4,10,12,math.random(40,45),"Knockdown2",refd,.3,1,math.random(3,4),nil,nil)
  1113. --MagniDamage(LeftArm,4,6,8,math.random(30,35),"Knockdown2",refd,.5,1,math.random(3,4),nil,nil)
  1114. --[[Neck.C0=clerp(Neck.C0,necko*euler(0,-1.57,0),.3)
  1115. RootJoint.C0=clerp(RootJoint.C0,cf(0,0,.2)*euler(0,-1.57,0),.3)
  1116. if i<.6 then
  1117. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.57)*euler(0,3.14,0),.5)
  1118. else
  1119. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.57)*euler(0,3.14,-1.2)*euler(-.5,0,0),.2)
  1120. end
  1121. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1122. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.57)*euler(0,0,1),.3)
  1123. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1124. RH.C0=clerp(RH.C0,cf(.5,-1,.2)*euler(0,1.57,0)*euler(.2,-1.57,0),.2)
  1125. LH.C0=clerp(LH.C0,cf(-.5,-1,-.2)*euler(0,-1.57,0)*euler(-.4,-1.57,0),.2)]]
  1126. Neck.C0=clerp(Neck.C0,necko*euler(0,.1,0)*euler(0,0,0),.4)
  1127. RootJoint.C0=clerp(RootJoint.C0,euler(0,-.5,0)*euler(0,0,0)*cf(0,.6,0),.4)
  1128. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.8,0,-.8)*euler(0,0,0),.4)
  1129. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1130. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-.7)*euler(0,0,0),.4)
  1131. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1132. RH.C0=clerp(RH.C0,cf(.5,-.5,0)*euler(0,1.57,0)*euler(-.2,0,0),.4)
  1133. LH.C0=clerp(LH.C0,cf(-.5,-.5,0)*euler(0,-1.57,0)*euler(-.2,0,0),.4)
  1134. end
  1135. for i=0,1,0.1 do
  1136. swait()
  1137. MagniDamage(RightArm,4,10,12,math.random(40,45),"Knockdown2",refd,.3,1,math.random(3,4),nil,nil)
  1138. Torso.Velocity=vt(0,60,0)
  1139. Neck.C0=clerp(Neck.C0,necko*euler(0,.1,0)*euler(0,0,0),.3)
  1140. RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*euler(0,0,0)*cf(0,0,0),.3)
  1141. RootJoint.C1=RootJoint.C1*euler(0,.5,0)
  1142. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.5,0,-.2)*euler(0,0,0),.3)
  1143. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1144. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-1)*euler(0,0,0),.3)
  1145. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1146. RH.C0=clerp(RH.C0,cf(.5,-.5,0)*euler(0,1.57,0)*euler(-.2,0,-.2),.3)
  1147. LH.C0=clerp(LH.C0,cf(-.5,-.5,0)*euler(0,-1.57,0)*euler(-.2,0,.2),.3)
  1148. end
  1149. refd.Parent=nil
  1150. RootJoint.C1=cf(0,0,0)
  1151. end
  1152. --swait(100)
  1153. attack=false
  1154. end
  1155.  
  1156. function MultiKick()
  1157. attack=true
  1158. for i=0,1,0.1 do
  1159. swait()
  1160. Neck.C0=clerp(Neck.C0,necko*euler(.1,.7,0)*euler(0,0,0),.3)
  1161. RootJoint.C0=clerp(RootJoint.C0,euler(.1,.8,0)*euler(0,0,0)*cf(0,.6,0),.3)
  1162. RW.C0=clerp(RW.C0,cf(1.3,0.4,.3)*euler(.4,0,.4)*euler(0,-.5,0),.3)
  1163. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1164. LW.C0=clerp(LW.C0,cf(-1.3,0.5,-.2)*euler(1,0,.2)*euler(0,1,0),.3)
  1165. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1166. RH.C0=clerp(RH.C0,cf(.7,-.7,-.5)*euler(0,1.57,0)*euler(0,-.3,-.6)*euler(.05,0,0),.3)
  1167. LH.C0=clerp(LH.C0,cf(-.6,-.6,-.8)*euler(0,-1.57,0)*euler(0,.2,-.4)*euler(.2,0,0),.3)
  1168. end
  1169. Look=RootPart.CFrame.lookVector*move*2
  1170. local n=8
  1171. for i=0,1,0.04 do
  1172. swait()
  1173. n=n+1
  1174. if n>=8 then
  1175. n=0
  1176. so("169445073",LeftLeg,1,1.2)
  1177. end
  1178. Torso.Velocity=Look
  1179. MagniDamage(LeftLeg,2,5,7,math.random(5,10),"Knockdown2",RootPart,.2,2,math.random(4,5),nil,nil)
  1180. Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0)*euler(0,0,0),.3)
  1181. RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*euler(0,0,0)*cf(0,0,0),.3)
  1182. RootJoint.C1=RootJoint.C1*euler(0,.6,0)
  1183. RW.C0=clerp(RW.C0,cf(1,0.4,.5)*euler(1.2,0,.4)*euler(0,0,0),.3)
  1184. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1185. LW.C0=clerp(LW.C0,cf(-1,0.4,.5)*euler(1.2,0,-.4)*euler(0,0,0),.3)
  1186. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1187. RH.C0=clerp(RH.C0,cf(.7,-.5,-.7)*euler(0,1.57,0)*euler(0,-.3,-1)*euler(0,0,0),.3)
  1188. LH.C0=clerp(LH.C0,cf(-.6,-.6,-.5)*euler(0,-1.57,0)*euler(0,.2,-1.5)*euler(.2,0,0),.3)
  1189. end
  1190. if RecentEnemy.Value~=nil then
  1191. RecentEnemy.Value=nil
  1192. target,distance=findNearestTorso(Torso.Position)
  1193. if target~=nil then
  1194. RootPart.CFrame=cf(RootPart.Position,target.Position)
  1195. end
  1196. Look=RootPart.CFrame.lookVector*move
  1197. for i=0,1,0.04 do
  1198. swait()
  1199. n=n+1
  1200. if n>=8 then
  1201. n=0
  1202. so("169445073",LeftLeg,1,1.2)
  1203. end
  1204. Torso.Velocity=Look
  1205. MagniDamage(LeftLeg,2,5,7,math.random(5,10),"Knockdown2",RootPart,.2,2,math.random(4,5),nil,nil)
  1206. Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0)*euler(0,0,0),.3)
  1207. RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*euler(0,0,0)*cf(0,0,0),.3)
  1208. RootJoint.C1=RootJoint.C1*euler(0,.6,0)
  1209. RW.C0=clerp(RW.C0,cf(1,0.4,.5)*euler(1.2,0,.4)*euler(0,0,0),.3)
  1210. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1211. LW.C0=clerp(LW.C0,cf(-1,0.4,.5)*euler(1.2,0,-.4)*euler(0,0,0),.3)
  1212. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1213. RH.C0=clerp(RH.C0,cf(.7,-.5,-.7)*euler(0,1.57,0)*euler(0,-.3,-1)*euler(0,0,0),.3)
  1214. LH.C0=clerp(LH.C0,cf(-.6,-.6,-.5)*euler(0,-1.57,0)*euler(0,.2,-1.5)*euler(.2,0,0),.3)
  1215. end
  1216. Torso.Velocity=vt(0,0,0)
  1217. end
  1218. RootJoint.C1=cf(0,0,0)
  1219. attack=false
  1220. end
  1221.  
  1222. function JumpKick()
  1223. attack=true
  1224. for i=0,1,0.1 do
  1225. swait()
  1226. Neck.C0=clerp(Neck.C0,necko*euler(-.4,0,0),.3)
  1227. RootJoint.C0=clerp(RootJoint.C0,cf(0,1,0)*euler(0,0,0),.3)
  1228. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.2),.3)
  1229. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.2),.3)
  1230. RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(-1.2,1.57,0),.3)
  1231. LH.C0=clerp(LH.C0,cf(-.6,-.5,-0.5)*euler(-0.2,-1.3,0),.3)
  1232. end
  1233. Torso.Velocity=vt(0,100,0)
  1234. jump=true
  1235. local dec=Instance.new("NumberValue",Decrease)
  1236. dec.Name="DecreaseMvmt"
  1237. dec.Value=-.4
  1238. for i=0,1,0.05 do
  1239. swait()
  1240. Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0)*euler(0,0,0),.2)
  1241. RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*euler(0,0,0)*cf(0,4,-3),.2)
  1242. RootJoint.C1=RootJoint.C1*euler(-.32,0,0)
  1243. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,1)*euler(0,0,0),.2)
  1244. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1245. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-1)*euler(0,0,0),.2)
  1246. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1247. RH.C0=clerp(RH.C0,cf(.7,-.5,-.7)*euler(0,1.57,0)*euler(0,-.3,-1)*euler(0,0,0),.2)
  1248. LH.C0=clerp(LH.C0,cf(-.6,-.6,-.5)*euler(0,-1.57,0)*euler(0,.2,-1.8)*euler(.2,0,0),.2)
  1249. end
  1250. while hitfloor==nil do
  1251. swait()
  1252. MagniDamage(LeftLeg,5,8,10,math.random(15,25),"Knockdown2",RootPart,.2,2,math.random(8,10),nil,nil)
  1253. MagniDamage(RightLeg,5,8,10,math.random(15,25),"Knockdown2",RootPart,.2,2,math.random(8,10),nil,nil)
  1254. end
  1255. jump=false
  1256. dec.Parent=nil
  1257. RootJoint.C1=cf(0,0,0)
  1258. attack=false
  1259. end
  1260.  
  1261. function EnergyBlam()
  1262. attack=true
  1263. for i=0,1,0.1 do
  1264. swait()
  1265. Neck.C0=clerp(Neck.C0,necko*euler(0,-1,0)*euler(-.2,0,0),.3)
  1266. RootJoint.C0=clerp(RootJoint.C0,euler(0,-1,0)*cf(0,.4,0),.3)
  1267. RW.C0=clerp(RW.C0,cf(1.3,0.5,-.2)*euler(1.4,0,-.5)*euler(0,0,0),.3)
  1268. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1269. LW.C0=clerp(LW.C0,cf(-1.3,0.5,-.2)*euler(1.4,0,.5)*euler(0,0,0),.3)
  1270. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1271. RH.C0=clerp(RH.C0,cf(.7,-.8,-.4)*euler(0,1.57,0)*euler(0,.5,-.1),.3)
  1272. LH.C0=clerp(LH.C0,cf(-.4,-.9,0)*euler(0,-1.57,0)*euler(0,-1,.2),.3)
  1273. end
  1274. so("2101137",Torso,1,1)
  1275. for i=0,1,0.05 do
  1276. swait()
  1277. MagicCircle(BrickColor.new("Bright blue"),Torso.CFrame*cf(0,0,-2),1,1,1,1,1,1,.1)
  1278. MagicCircle(BrickColor.new("White"),Torso.CFrame*cf(0,0,-2),1,1,1,.5,.5,.5,.1)
  1279. end
  1280. for i=0,1,0.1 do
  1281. swait()
  1282. MagicCircle(BrickColor.new("Bright blue"),Torso.CFrame*cf(0,.5,-2),1,1,1,1,1,1,.1)
  1283. MagicCircle(BrickColor.new("White"),Torso.CFrame*cf(0,.5,-2),1,1,1,.5,.5,.5,.1)
  1284. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,0),.3)
  1285. RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*cf(0,.4,0),.3)
  1286. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.5,0,-.5)*euler(0,0,0),.3)
  1287. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1288. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.5,0,.5)*euler(0,0,0),.3)
  1289. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1290. RH.C0=clerp(RH.C0,cf(.7,-.8,-.4)*euler(0,1.57,0)*euler(0,0,-.1),.3)
  1291. LH.C0=clerp(LH.C0,cf(-.4,-.9,0)*euler(0,-1.57,0)*euler(0,0,.2),.3)
  1292. end
  1293. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1294. ref.Anchored=false
  1295. --ref.CFrame=cf(head.Position)
  1296. local rwld=weld(Torso,Torso,ref,cf(0,.5,-2.5))
  1297. game:GetService("Debris"):AddItem(ref,10)
  1298. ref2=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1299. ref2.Anchored=false
  1300. --ref.CFrame=cf(head.Position)
  1301. game:GetService("Debris"):AddItem(ref2,10)
  1302. local tehCF=nil
  1303. --[[target,distance=findNearestTorso(Torso.Position)
  1304. if target~=nil then]]
  1305. tehCF=cf(ref.Position,Mouse.Hit.p)
  1306. --end
  1307. nuh=5
  1308. for i=0,1,0.05 do
  1309. swait()
  1310. nuh=nuh+1
  1311. if nuh>=5 then
  1312. nuh=0
  1313. so("169380505",ref2,1,1.5)
  1314. end
  1315. --[[target,distance=findNearestTorso(Torso.Position)
  1316. if target~=nil then]]
  1317. hit,pos=rayCast(ref.Position,tehCF.lookVector,100,Character)
  1318. local mag=(ref.Position-pos).magnitude
  1319. MagicCylinder3(BrickColor.new("White"),CFrame.new((ref.Position+pos)/2,pos)*angles(1.57,0,0),6,mag*5,6,2,1,2,0.1)
  1320. MagicCircle2(BrickColor.new("White"),cf(pos),10,10,10,10,10,10,.1)
  1321. ref2.CFrame=cf(pos)
  1322. MagniDamage(ref2,10,12,16,0,"Normal",ref2,.2,1,math.random(2,4),nil,nil,true)
  1323. --end
  1324. end
  1325. ref.Parent=nil
  1326. ref2.Parent=nil
  1327. attack=false
  1328. end
  1329.  
  1330. function DecreaseStat(Model,Stat,Amount,Duration)
  1331. if Model:findFirstChild("Stats")~=nil then
  1332. if Model.Stats[Stat]~=nil then
  1333. Model.Stats[Stat].Value=Model.Stats[Stat].Value-Amount
  1334. d=Instance.new("NumberValue",Model.Stats.Decrease)
  1335. game:GetService("Debris"):AddItem(d,40)
  1336. if Stat=="Damage" then
  1337. d.Name="DecreaseAtk"
  1338. elseif Stat=="Defense" then
  1339. d.Name="DecreaseDef"
  1340. elseif Stat=="Movement" then
  1341. d.Name="DecreaseMvmt"
  1342. end
  1343. if Model:findFirstChild("Torso")~=nil then
  1344. display=""
  1345. if Stat=="Damage" then
  1346. if Amount>0 then
  1347. display="-Damage"
  1348. else
  1349. display="+Damage"
  1350. end
  1351. elseif Stat=="Defense" then
  1352. if Amount>0 then
  1353. display="-Defense"
  1354. else
  1355. display="+Defense"
  1356. end
  1357. elseif Stat=="Movement" then
  1358. if Amount>0 then
  1359. display="-Movement"
  1360. else
  1361. display="+Movement"
  1362. end
  1363. end
  1364. showDamage(Model,display,"Debuff")
  1365. end
  1366. d.Value=Amount
  1367. table.insert(Effects,{Model,"DecreaseStat",Stat,Amount,Duration,d})
  1368. end
  1369. end
  1370. end
  1371.  
  1372. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1373. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1374. end
  1375.  
  1376. --[[function findNearestTorso(pos)
  1377. local list = game.Workspace:children()
  1378. local torso = nil
  1379. local dist = 1000
  1380. local temp = nil
  1381. local human = nil
  1382. local temp2 = nil
  1383. for x = 1, #list do
  1384. temp2 = list[x]
  1385. if (temp2.className == "Model") and (temp2.Name~=bName) then
  1386. temp = temp2:findFirstChild("Torso")
  1387. human = temp2:findFirstChild("Humanoid")
  1388. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1389. if btarget.Value==nil then
  1390. if (temp.Position - pos).magnitude < dist then
  1391. local dohit=true
  1392. if temp2:findFirstChild("Stats")~=nil then if temp2.Stats:findFirstChild("Boss")~=nil then if temp2.Stats.Boss.Value==true then dohit=false end end end
  1393. if temp2:findFirstChild("Alive")==nil then dohit=false end
  1394. if dohit==true then
  1395. torso = temp
  1396. dist = (temp.Position - pos).magnitude
  1397. end
  1398. end
  1399. else
  1400. if btarget.Value.Parent~=nil then
  1401. if btarget.Value:findFirstChild("Torso")~=nil then
  1402. if btarget.Value:findFirstChild("Humanoid")~=nil then
  1403. if btarget.Value.Humanoid.Health<=0 then
  1404. btarget.Value=nil
  1405. end
  1406. end
  1407. if btarget.Value~=nil then
  1408. torso=btarget.Value.Torso
  1409. dist = (torso.Position - pos).magnitude
  1410. end
  1411. end
  1412. else
  1413. btarget.Value=nil
  1414. end
  1415. end
  1416. end
  1417. end
  1418. end
  1419. return torso,dist
  1420. end]]
  1421. findNearestTorso = function(pos)
  1422. local list = (game.Workspace:children())
  1423. local torso = nil
  1424. local dist = 1000
  1425. local temp, human, temp2 = nil, nil, nil
  1426. for x = 1, #list do
  1427. temp2 = list[x]
  1428. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  1429. temp = temp2:findFirstChild("Torso")
  1430. human = temp2:findFirstChild("Humanoid")
  1431. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  1432. local dohit = true
  1433. if dohit == true then
  1434. torso = temp
  1435. dist = (temp.Position - pos).magnitude
  1436. end
  1437. end
  1438. end
  1439. end
  1440. return torso, dist
  1441. end
  1442. function findRandomTorso(pos)
  1443. local list = game.Workspace:children()
  1444. local torso = nil
  1445. local dist = 1000
  1446. local temp = nil
  1447. local human = nil
  1448. local temp2 = nil
  1449. local list2 = {}
  1450. for x = 1, #list do
  1451. temp2 = list[x]
  1452. if (temp2.className == "Model") and (temp2.Name~="Vanta") then
  1453. temp = temp2:findFirstChild("Torso")
  1454. human = temp2:findFirstChild("Humanoid")
  1455. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1456. if pos.magnitude < dist then
  1457. torso = temp
  1458. table.insert(list2,temp)
  1459. end
  1460. end
  1461. end
  1462. end
  1463. if #list2>0 then
  1464. rand=math.random(1,#list2)
  1465. return list2[rand],dist
  1466. else
  1467. return nil,dist
  1468. end
  1469. end
  1470.  
  1471. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration,Sound)
  1472. if hit.Parent==nil then
  1473. return
  1474. end
  1475. h=hit.Parent:FindFirstChild("Humanoid")
  1476. for _,v in pairs(hit.Parent:children()) do
  1477. if v:IsA("Humanoid") then
  1478. h=v
  1479. end
  1480. end
  1481. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1482. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1483. end
  1484. if hit.Parent.className=="Hat" then
  1485. hit=hit.Parent.Parent:findFirstChild("Head")
  1486. end
  1487. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1488. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1489. if hit.Parent:findFirstChild("Stats")~=nil then if hit.Parent.Stats:findFirstChild("Boss")~=nil then if hit.Parent.Stats.Boss.Value==true then return end end end
  1490. RecentEnemy.Value=hit.Parent
  1491. game:GetService("Debris"):AddItem(c,.5)
  1492. minim=minim*Atk.Value
  1493. maxim=maxim*Atk.Value
  1494. Damage=0
  1495. if minim==maxim or minim>maxim then
  1496. Damage=maxim
  1497. else
  1498. Damage=math.random(minim,maxim)
  1499. end
  1500. blocked=false
  1501. enblock=nil
  1502. Stats=hit.Parent:findFirstChild("Stats")
  1503. if Stats~=nil then
  1504. enblock=Stats:findFirstChild("Block")
  1505. if enblock~=nil then
  1506. if enblock.Value==true then
  1507. blocked=true
  1508. end
  1509. end
  1510. if Stats:findFirstChild("Defense")~=nil then
  1511. Damage=Damage/(Stats.Defense.Value)
  1512. if Damage<=3 and (ranged==false or ranged==nil) and blocked~=true then
  1513. hitnum=math.random(1,3)
  1514. if hitnum==1 then so("169380525",hit,1,math.random(80,120)/100)
  1515. elseif hitnum==2 then so("169380538",hit,1,math.random(80,120)/100)
  1516. elseif hitnum==3 then so("169380528",hit,1,math.random(80,120)/100)
  1517. end
  1518. --[[if hitnum==1 then so("199149321",hit,1,1)
  1519. elseif hitnum==2 then so("199149338",hit,1,1)
  1520. elseif hitnum==3 then so("199149367",hit,1,1)
  1521. elseif hitnum==4 then so("199149409",hit,1,1)
  1522. elseif hitnum==5 then so("199149452",hit,1,1)
  1523. end]]
  1524. elseif ranged==false or ranged==nil and blocked~=true then
  1525. hitnum=math.random(1,3)
  1526. if hitnum==1 then so("169380525",hit,1,math.random(80,120)/100)
  1527. elseif hitnum==2 then so("169380538",hit,1,math.random(80,120)/100)
  1528. elseif hitnum==3 then so("169380528",hit,1,math.random(80,120)/100)
  1529. end
  1530. --[[if hitnum==1 then so("199149137",hit,1,1)
  1531. elseif hitnum==2 then so("199149186",hit,1,1)
  1532. elseif hitnum==3 then so("199149221",hit,1,1)
  1533. elseif hitnum==4 then so("199149235",hit,1,1)
  1534. elseif hitnum==5 then so("199149269",hit,1,1)
  1535. elseif hitnum==6 then so("199149297",hit,1,1)
  1536. end]]
  1537. end
  1538. end
  1539. if Stats:findFirstChild("Stun")~=nil then
  1540. if blocked==true then
  1541. incstun=math.floor(incstun/2)
  1542. end
  1543. Stats.Stun.Value=Stats.Stun.Value+incstun
  1544. end
  1545. if Stats:findFirstChild("Stagger")~=nil then
  1546. if stagger==true then
  1547. Stats.Stagger.Value=true
  1548. end
  1549. end
  1550. end
  1551. if blocked==true then
  1552. showDamage(hit.Parent,"Block","Damage")
  1553. hitnum=math.random(1,2)
  1554. if hitnum==1 then so("199148933",hit,1,1)
  1555. elseif hitnum==2 then so("199148947",hit,1,1)
  1556. end
  1557. enblock.Value=false
  1558. else
  1559. Damage=math.floor(Damage)
  1560. h.Health=h.Health-Damage
  1561. --[[coroutine.resume(coroutine.create(function(Hum,Dam)
  1562. damageFunc:InvokeServer(Hum,Dam)
  1563. end),h,Damage)]]
  1564. showDamage(hit.Parent,Damage,"Damage")
  1565. if DecreaseState~=nil then
  1566. if DecreaseState=="Shatter" then
  1567. DecreaseStat(hit.Parent,"Movement",DecreaseAmount,Duration)
  1568. DecreaseStat(hit.Parent,"Damage",DecreaseAmount,Duration)
  1569. else
  1570. DecreaseStat(hit.Parent,DecreaseState,DecreaseAmount,Duration)
  1571. end
  1572. end
  1573. if Type=="Knockdown" then
  1574. hum=hit.Parent.Humanoid
  1575. hum.PlatformStand=true
  1576. coroutine.resume(coroutine.create(function(HHumanoid)
  1577. swait(1)
  1578. HHumanoid.PlatformStand=false
  1579. end),hum)
  1580. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1581. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1582. local bodvol=Instance.new("BodyVelocity")
  1583. bodvol.velocity=angle*knockback
  1584. bodvol.P=5000
  1585. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1586. bodvol.Parent=hit
  1587. rl=Instance.new("BodyAngularVelocity")
  1588. rl.P=3000
  1589. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1590. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1591. rl.Parent=hit
  1592. game:GetService("Debris"):AddItem(bodvol,.5)
  1593. game:GetService("Debris"):AddItem(rl,.5)
  1594. elseif Type=="Shatter" then
  1595. for i=1,10 do
  1596. BreakEffect(BrickColor.new("Cyan"),hit.CFrame,math.random(20,80)/100,math.random(2,10),math.random(20,80)/100)
  1597. end
  1598. elseif Type=="Knockdown2" then
  1599. hum=hit.Parent.Humanoid
  1600. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1601. local bodvol=Instance.new("BodyVelocity")
  1602. bodvol.velocity=angle*knockback
  1603. bodvol.P=5000
  1604. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1605. bodvol.Parent=hit
  1606. game:GetService("Debris"):AddItem(bodvol,.5)
  1607. elseif Type=="Normal" then
  1608. vp=Instance.new("BodyVelocity")
  1609. vp.P=500
  1610. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1611. if KnockbackType==1 then
  1612. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1613. elseif KnockbackType==2 then
  1614. vp.velocity=Property.CFrame.lookVector*knockback
  1615. end
  1616. game:GetService("Debris"):AddItem(vp,.5)
  1617. if knockback>0 then
  1618. vp.Parent=hit.Parent.Torso
  1619. end
  1620. end
  1621. end
  1622. debounce=Instance.new("BoolValue")
  1623. debounce.Name="DebounceHit"
  1624. debounce.Parent=hit.Parent
  1625. debounce.Value=true
  1626. game:GetService("Debris"):AddItem(debounce,Delay)
  1627. CRIT=false
  1628. end
  1629. end
  1630.  
  1631. showDamage=function(Char,Dealt,Type)
  1632. m=Instance.new("Model")
  1633. m.Name="Effect"
  1634. c=Instance.new("Part")
  1635. c.Transparency=1
  1636. c.Name="Head"
  1637. c.TopSurface=0
  1638. c.BottomSurface=0
  1639. c.formFactor="Plate"
  1640. c.Size=Vector3.new(1,.4,1)
  1641. b=Instance.new("BillboardGui",c)
  1642. b.Size=UDim2.new(5,0,5,0)
  1643. b.AlwaysOnTop=true
  1644. damgui=gui("TextLabel",b,tostring(Dealt),1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  1645. if Type=="Damage" then
  1646. damgui.Font="SourceSans"
  1647. if Dealt=="Block" then
  1648. damgui.TextColor3=BrickColor.new("Bright blue").Color
  1649. elseif Dealt<3 then
  1650. damgui.TextColor3=BrickColor.new("White").Color
  1651. elseif Dealt>=3 and Dealt<20 then
  1652. damgui.TextColor3=BrickColor.new("Bright yellow").Color
  1653. else
  1654. damgui.TextColor3=BrickColor.new("Really red").Color
  1655. damgui.Font="SourceSansBold"
  1656. end
  1657. elseif Type=="Debuff" then
  1658. damgui.TextColor3=BrickColor.new("White").Color
  1659. elseif Type=="Interrupt" then
  1660. damgui.TextColor3=BrickColor.new("New Yeller").Color
  1661. end
  1662. --damgui.FontSize="Size48"
  1663. damgui.TextScaled=true
  1664. ms=Instance.new("CylinderMesh")
  1665. ms.Scale=Vector3.new(.8,.8,.8)
  1666. ms.Parent=c
  1667. c.Reflectance=0
  1668. Instance.new("BodyGyro").Parent=c
  1669. c.Parent=m
  1670. if Char:findFirstChild("Head")~=nil then
  1671. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  1672. elseif Char.Parent:findFirstChild("Head")~=nil then
  1673. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  1674. end
  1675. f=Instance.new("BodyPosition")
  1676. f.P=2000
  1677. f.D=100
  1678. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1679. if Type=="Damage" then
  1680. f.position=c.Position+Vector3.new(0,3,0)
  1681. elseif Type=="Debuff" or Type=="Interrupt" then
  1682. f.position=c.Position+Vector3.new(0,5,0)
  1683. end
  1684. f.Parent=c
  1685. game:GetService("Debris"):AddItem(m,5)
  1686. table.insert(Effects,{m,"showDamage",damgui,f,10,1,15,50,100})
  1687. c.CanCollide=false
  1688. m.Parent=workspace
  1689. c.CanCollide=false
  1690. end
  1691.  
  1692. function MagniDamage(Part,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  1693. for _,c in pairs(workspace:children()) do
  1694. local hum=c:findFirstChild("Humanoid")
  1695. if hum~=nil then
  1696. local head=nil
  1697. for _,d in pairs(c:children()) do
  1698. --if d.Name=="Torso" or d.Name=="Head" or d.Name=="HumanoidRootPart" or d.Name=="HitPart" then
  1699. --[[if d.className=="Model" and ranged~=true then
  1700. head=d:findFirstChild("Hitbox")
  1701. if d.Parent==Character then break end
  1702. if head~=nil then
  1703. local targ=head.Position-Part.Position
  1704. local mag=targ.magnitude
  1705. if mag<=magni then
  1706. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1707. ref.Anchored=true
  1708. ref.CFrame=cf(head.Position)
  1709. game:GetService("Debris"):AddItem(ref,1)
  1710. hitnum=math.random(1,5)
  1711. if hitnum==1 then so("199148971",ref,1,1)
  1712. elseif hitnum==2 then so("199149025",ref,1,1)
  1713. elseif hitnum==3 then so("199149072",ref,1,1)
  1714. elseif hitnum==4 then so("199149109",ref,1,1)
  1715. elseif hitnum==5 then so("199149119",ref,1,1)
  1716. end
  1717. StaggerHit.Value=true
  1718. end
  1719. end
  1720. end]]
  1721. if d.className=="Part" then
  1722. head=d
  1723. if head~=nil then
  1724. local targ=head.Position-Part.Position
  1725. local mag=targ.magnitude
  1726. if mag<=magni and c.Name~=Character then
  1727. if stun==nil then
  1728. stun=math.random(5,10)
  1729. end
  1730. local Rang=nil
  1731. if Ranged==false then
  1732. Rang=true
  1733. end
  1734. local stag=nil
  1735. if shbash==true then
  1736. stag=true
  1737. end
  1738. Damagefunc(head,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  1739. --Damagefunc(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,DecreaseState,DecreaseAmount,Duration)
  1740. end
  1741. end
  1742. end
  1743. end
  1744. end
  1745. end
  1746. end
  1747. local hold = false
  1748. function onKeyDown(key)
  1749. if attack==false then
  1750. if key=="z" then
  1751. PunchSlam()
  1752. elseif key=="x" then
  1753. SweepCut()
  1754. elseif key=="c" then
  1755. MultiKick()
  1756. elseif key=="v" then
  1757. JumpKick()
  1758. elseif key == "b" then
  1759. EnergyBlam()
  1760. --[[elseif key == "n" then
  1761. GrandeurDash()
  1762. elseif key == "m" then
  1763. DeathImpact()
  1764. elseif key == "f" then
  1765. Jump()]]
  1766. elseif key=="0" and hold == false then
  1767. hold = true
  1768. run.Parent=Decrease
  1769. end
  1770. end
  1771. end
  1772. function onKeyUp(key)
  1773. if attack==false then
  1774. if key=="0" and hold == true then
  1775. hold = false
  1776. run.Parent=nil
  1777. end
  1778. end
  1779. end
  1780. Mouse.KeyDown:connect(onKeyDown)
  1781. Mouse.KeyUp:connect(onKeyUp)
  1782. local stunnum=0
  1783. local animnum=0
  1784. local idle=1
  1785. local animlimit=5
  1786. local target,distance=nil,nil
  1787. local attacking=false
  1788. local stunanim=false
  1789. while Humanoid.Health>0 do
  1790. swait()
  1791. --[[print(target)
  1792. print(distance)]]
  1793. hitbox2.Parent=hitbox.Parent
  1794. hitbox2.Size=hitbox.Size
  1795. hitbox2.CFrame=hitboxCF
  1796. --[[for _,c in pairs(Character:children()) do
  1797. for _,v in pairs(c:children()) do
  1798. if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
  1799. if v.Name~="SiegmundGyro" and v.Name~="SiegmundPos" then
  1800. print("dai")
  1801. v.Parent=nil
  1802. end
  1803. end
  1804. end
  1805. end]]
  1806. coroutine.resume(coroutine.create(function()
  1807. if start==false then
  1808. start=true
  1809. StartAnim()
  1810. end
  1811. end))
  1812. if attack==false then
  1813. BodGy.cframe=cf(Torso.Position,Mouse.Hit.p)
  1814. end
  1815. target,distance=findNearestTorso(Torso.Position)
  1816. --[[if target~=nil then
  1817. if attack==false then
  1818. BodGy.cframe=cf(Torso.Position,target.Position)
  1819. end
  1820. numb1=RootPart.Position.y
  1821. numb2=target.Position.y
  1822. if numb2-numb1>=5 or numb2-numb1<=-5 then
  1823. if distance<=30 then
  1824. if attack==false then
  1825. attackrand=math.random(1,20)
  1826. if attackrand==1 then
  1827. coroutine.resume(coroutine.create(function()
  1828. RecentEnemy.Value=nil
  1829. JumpKick()
  1830. end))
  1831. end
  1832. end
  1833. end
  1834. end
  1835. if distance>30 then --far range
  1836. Humanoid:MoveTo(target.Position)
  1837. run.Parent=Decrease
  1838. if attack==false then
  1839. attackrand=math.random(1,70)
  1840. if attackrand==1 then
  1841. coroutine.resume(coroutine.create(function()
  1842. RecentEnemy.Value=nil
  1843. EnergyBlam()
  1844. --[[d=math.random(1,3)
  1845. if d==1 then
  1846. PunchSlam()
  1847. elseif d==2 then
  1848. SweepCut()
  1849. elseif d==3 then
  1850. MultiKick()
  1851. end
  1852. end))
  1853. --[[coroutine.resume(coroutine.create(function()
  1854. buffdef.Parent=Decrease
  1855. atk=0
  1856. if stompcooldown<=0 then
  1857. atk=3
  1858. else
  1859. atk=math.random(1,2)
  1860. end
  1861. if atk==1 then
  1862. Jump()
  1863. elseif atk==2 then
  1864. GrandeurDash()
  1865. elseif atk==3 then
  1866. DeathImpact()
  1867. end
  1868. buffdef.Parent=nil
  1869. end))
  1870. end
  1871. end
  1872. elseif distance<=30 and distance>=5 then --mid range
  1873. move=distance*3
  1874. Humanoid:MoveTo(target.Position)
  1875. run.Parent=nil
  1876. if attack==false then
  1877. attackrand=math.random(1,20)
  1878. if attackrand==1 then
  1879. coroutine.resume(coroutine.create(function()
  1880. RecentEnemy.Value=nil
  1881. d=math.random(1,3)
  1882. if d==1 then
  1883. PunchSlam()
  1884. elseif d==2 then
  1885. SweepCut()
  1886. elseif d==3 then
  1887. MultiKick()
  1888. end
  1889. end))
  1890. --[[coroutine.resume(coroutine.create(function()
  1891. buffdef.Parent=Decrease
  1892. atk=0
  1893. if stompcooldown<=0 then
  1894. atk=3
  1895. else
  1896. atk=math.random(1,2)
  1897. end
  1898. if atk==1 then
  1899. HeavySlam()
  1900. elseif atk==2 then
  1901. GrandeurDash()
  1902. elseif atk==3 then
  1903. DeathImpact()
  1904. end
  1905. buffdef.Parent=nil
  1906. end))
  1907. end
  1908. end
  1909. else --close range
  1910. move=10
  1911. Humanoid:MoveTo(RootPart.Position)
  1912. run.Parent=nil
  1913. --run.Parent=nil
  1914. if attack==false then
  1915. attackrand=math.random(1,20)
  1916. if attackrand==1 then
  1917. coroutine.resume(coroutine.create(function()
  1918. RecentEnemy.Value=nil
  1919. d=math.random(1,3)
  1920. if d==1 then
  1921. PunchSlam()
  1922. elseif d==2 then
  1923. SweepCut()
  1924. elseif d==3 then
  1925. MultiKick()
  1926. end
  1927. end))
  1928. --[[coroutine.resume(coroutine.create(function()
  1929. buffdef.Parent=Decrease
  1930. HeavyCombo("Stun")
  1931. buffdef.Parent=nil
  1932. end))
  1933. end
  1934. end
  1935. end
  1936. end]]
  1937. if Mvmt.Value<0 or Stun.Value>=100 or attack==true then
  1938. Humanoid.WalkSpeed=0
  1939. if jump==true then
  1940. Humanoid.WalkSpeed=16*Mvmt.Value
  1941. end
  1942. else
  1943. Humanoid.WalkSpeed=16*Mvmt.Value
  1944. end
  1945. if Stun.Value>=100 and stunanim==false then
  1946. coroutine.resume(coroutine.create(function()
  1947. stunanim=true
  1948. while attack==true do
  1949. swait()
  1950. end
  1951. StunAnim()
  1952. Stun.Value=0
  1953. stunanim=false
  1954. end))
  1955. end
  1956. local stunnum2=80
  1957. if stunnum>=stunnum2 then
  1958. if Stun.Value>0 then
  1959. Stun.Value=Stun.Value-1
  1960. end
  1961. stunnum=0
  1962. end
  1963. stunnum=stunnum+1
  1964. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1965. local velderp=RootPart.Velocity.y
  1966. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,10,Character)
  1967. for _,c in pairs(Decrease:children()) do
  1968. if c:findFirstChild("Duration")~=nil then
  1969. c.Duration.Value=c.Duration.Value-1
  1970. if c.Duration.Value<=0 then
  1971. c.Parent=nil
  1972. end
  1973. end
  1974. if c.Name=="DecreaseAtk" then
  1975. decreaseatk=decreaseatk+c.Value
  1976. elseif c.Name=="DecreaseDef" then
  1977. decreasedef=decreasedef+c.Value
  1978. elseif c.Name=="DecreaseMvmt" then
  1979. decreasemvmt=decreasemvmt+c.Value
  1980. end
  1981. end
  1982. Atk.Value=1-decreaseatk
  1983. if Atk.Value<=0 then
  1984. Atk.Value=0
  1985. end
  1986. Def.Value=1-decreasedef
  1987. if Def.Value<=0 then
  1988. Def.Value=0.01
  1989. end
  1990. Mvmt.Value=1-decreasemvmt
  1991. if Mvmt.Value<=0 then
  1992. Mvmt.Value=0
  1993. end
  1994. decreaseatk=0
  1995. decreasedef=0
  1996. decreasemvmt=0
  1997. AtkVal=Atk.Value*100
  1998. AtkVal=math.floor(AtkVal)
  1999. AtkVal=AtkVal/100
  2000. DefVal=Def.Value*100
  2001. DefVal=math.floor(DefVal)
  2002. DefVal=DefVal/100
  2003. MvmtVal=Mvmt.Value*100
  2004. MvmtVal=math.floor(MvmtVal)
  2005. MvmtVal=MvmtVal/100
  2006. if MvmtVal<=0 then
  2007. MvmtVal=0
  2008. end
  2009. animnum=animnum+1
  2010. if animnum>=animlimit*5 then
  2011. idle=1
  2012. animnum=0
  2013. elseif animnum>=animlimit*4 then
  2014. idle=1
  2015. animnum=0
  2016. elseif animnum>=animlimit*3 then
  2017. idle=4
  2018. elseif animnum>=animlimit*2 then
  2019. idle=3
  2020. elseif animnum>=animlimit*1 then
  2021. idle=2
  2022. end
  2023. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2024. Anim="Jump"
  2025. if attack==false then
  2026. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0),.3)
  2027. RootJoint.C0=clerp(RootJoint.C0,euler(-.1,0,0),.3)
  2028. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,1),.3)
  2029. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2030. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-1),.3)
  2031. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2032. RH.C0=clerp(RH.C0,cf(.5,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  2033. LH.C0=clerp(LH.C0,cf(-.5,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  2034. end
  2035. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2036. Anim="Fall"
  2037. if attack==false then
  2038. Neck.C0=clerp(Neck.C0,necko*euler(-.4,0,0),.3)
  2039. RootJoint.C0=clerp(RootJoint.C0,euler(.2,0,0),.3)
  2040. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.3,0,0.2),.3)
  2041. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2042. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.3,0,-0.2),.3)
  2043. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2044. RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(0.4,1.57,0),.2)
  2045. LH.C0=clerp(LH.C0,cf(-.5,-1,0)*euler(-0.2,-1.57,0),.2)
  2046. end
  2047. elseif torvel<1 and hitfloor~=nil then
  2048. Anim="Idle"
  2049. animlimit=15
  2050. if attack==false then
  2051. if idle==1 or idle==2 then
  2052. Neck.C0=clerp(Neck.C0,necko*euler(0,.5,0)*euler(0,0,0),.1)
  2053. RootJoint.C0=clerp(RootJoint.C0,euler(0,.5,0)*cf(0,.4,0),.1)
  2054. RW.C0=clerp(RW.C0,cf(1.3,0.4,.3)*euler(1,0,.2)*euler(0,-.5,0),.1)
  2055. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  2056. LW.C0=clerp(LW.C0,cf(-1.3,0.5,-.2)*euler(1.4,0,.5)*euler(0,1,0),.1)
  2057. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  2058. RH.C0=clerp(RH.C0,cf(.6,-.9,0)*euler(0,1.57,0)*euler(0,-.1,-.05),.1)
  2059. LH.C0=clerp(LH.C0,cf(-.7,-.8,-.4)*euler(0,-1.57,0)*euler(0,.5,.1),.1)
  2060. else
  2061. Neck.C0=clerp(Neck.C0,necko*euler(.1,.5,0)*euler(0,0,0),.1)
  2062. RootJoint.C0=clerp(RootJoint.C0,euler(.1,.5,0)*euler(0,0,0)*cf(0,.6,0),.1)
  2063. RW.C0=clerp(RW.C0,cf(1.3,0.4,.3)*euler(.8,0,.4)*euler(0,-.5,0),.1)
  2064. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  2065. LW.C0=clerp(LW.C0,cf(-1.3,0.5,-.2)*euler(1.6,0,.2)*euler(0,1,0),.1)
  2066. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  2067. RH.C0=clerp(RH.C0,cf(.7,-.7,-.5)*euler(0,1.57,0)*euler(0,-.1,-.2)*euler(.05,0,0),.1)
  2068. LH.C0=clerp(LH.C0,cf(-.6,-.6,-.8)*euler(0,-1.57,0)*euler(0,.5,.2)*euler(-.1,0,0),.1)
  2069. end
  2070. end
  2071. elseif torvel>2 and torvel<20 and hitfloor~=nil then
  2072. Anim="Walk"
  2073. animlimit=10
  2074. if attack==false then
  2075. if idle==1 or idle==2 then
  2076. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  2077. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-1.4,0,-.1)*euler(0,0,0),.1)
  2078. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  2079. RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(0,1.57,0)*euler(0,0,-.5),.1)
  2080. if idle==1 then
  2081. Neck.C0=clerp(Neck.C0,necko*euler(.05,0,0)*euler(0,0,0),.1)
  2082. RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*cf(0,.1,0),.1)
  2083. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,0)*euler(0,0,0),.1)
  2084. LH.C0=clerp(LH.C0,cf(-.5,-1,0)*euler(0,-1.57,0)*euler(0,0,-1.2),.1)
  2085. elseif idle==2 then
  2086. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,0),.1)
  2087. RootJoint.C0=clerp(RootJoint.C0,euler(.2,0,0)*cf(0,.2,0),.1)
  2088. RW.C0=clerp(RW.C0,cf(1.3,0.5,-.5)*euler(1.2,0,-.5)*euler(0,0,0),.1)
  2089. LH.C0=clerp(LH.C0,cf(-.5,-.9,-.3)*euler(0,-1.57,0)*euler(0,0,0),.1)
  2090. end
  2091. else
  2092. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.4,0,.1)*euler(0,0,0),.1)
  2093. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  2094. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  2095. LH.C0=clerp(LH.C0,cf(-.5,-1,0)*euler(0,-1.57,0)*euler(0,0,.5),.1)
  2096. if idle==3 then
  2097. Neck.C0=clerp(Neck.C0,necko*euler(.05,0,0)*euler(0,0,0),.1)
  2098. RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*cf(0,.1,0),.1)
  2099. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,0,0)*euler(0,0,0),.1)
  2100. RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(0,1.57,0)*euler(0,0,1.2),.1)
  2101. elseif idle==4 then
  2102. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,0),.1)
  2103. RootJoint.C0=clerp(RootJoint.C0,euler(.2,0,0)*cf(0,.2,0),.1)
  2104. LW.C0=clerp(LW.C0,cf(-1.3,0.5,-.5)*euler(1.2,0,.5)*euler(0,0,0),.1)
  2105. RH.C0=clerp(RH.C0,cf(.5,-.9,-.3)*euler(0,1.57,0)*euler(0,0,0),.1)
  2106. end
  2107. end
  2108. end
  2109. elseif torvel>=20 and hitfloor~=nil then
  2110. Anim="Run"
  2111. animlimit=10
  2112. if attack==false then
  2113. if idle==1 or idle==2 then
  2114. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.2)
  2115. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2116. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2117. RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(0,1.57,0)*euler(-.2,0,-.8),.2)
  2118. if idle==1 then
  2119. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1,0,.5)*euler(0,0,0),.2)
  2120. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-1,0,-.5)*euler(0,0,0),.2)
  2121. RootJoint.C0=clerp(RootJoint.C0,euler(.4,0,0)*cf(0,.3,0),.2)
  2122. LH.C0=clerp(LH.C0,cf(-.5,-1,0)*euler(0,-1.57,0)*euler(0,0,-1.5),.2)
  2123. elseif idle==2 then
  2124. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.2,0,.3)*euler(0,0,0),.2)
  2125. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-1.2,0,-.3)*euler(0,0,0),.2)
  2126. RootJoint.C0=clerp(RootJoint.C0,euler(.5,0,0)*cf(0,.4,0),.1)
  2127. LH.C0=clerp(LH.C0,cf(-.5,-.6,-.5)*euler(0,-1.57,0)*euler(0,0,-.5),.1)
  2128. end
  2129. else
  2130. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.2)
  2131. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2132. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2133. LH.C0=clerp(LH.C0,cf(-.5,-1,0)*euler(0,-1.57,0)*euler(-.2,0,.8),.2)
  2134. if idle==3 then
  2135. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1,0,.5)*euler(0,0,0),.2)
  2136. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-1,0,-.5)*euler(0,0,0),.2)
  2137. RootJoint.C0=clerp(RootJoint.C0,euler(.4,0,0)*cf(0,.3,0),.2)
  2138. RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(0,1.57,0)*euler(0,0,1.5),.2)
  2139. elseif idle==4 then
  2140. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.2,0,.3)*euler(0,0,0),.2)
  2141. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-1.2,0,-.3)*euler(0,0,0),.2)
  2142. RootJoint.C0=clerp(RootJoint.C0,euler(.5,0,0)*cf(0,.4,0),.1)
  2143. RH.C0=clerp(RH.C0,cf(.5,-.6,-.5)*euler(0,1.57,0)*euler(0,0,.5),.1)
  2144. end
  2145. end
  2146. end
  2147. end
  2148. if #Effects>0 then
  2149. --table.insert(Effects,{prt,"Block1",delay})
  2150. for e=1,#Effects do
  2151. if Effects[e]~=nil then
  2152. --for j=1,#Effects[e] do
  2153. local Thing=Effects[e]
  2154. if Thing~=nil then
  2155. local Part=Thing[1]
  2156. local Mode=Thing[2]
  2157. local Delay=Thing[3]
  2158. local IncX=Thing[4]
  2159. local IncY=Thing[5]
  2160. local IncZ=Thing[6]
  2161. if Thing[2]=="DecreaseStat" then
  2162. --table.insert(Effects,{Model,"DecreaseStat",Stat,Amount,Duration,d})
  2163. Thing[5]=Thing[5]-1
  2164. if Thing[5]<=0 then
  2165. if Thing[1]:findFirstChild("Stats")~=nil then
  2166. if Thing[1].Stats:findFirstChild("Decrease")~=nil then
  2167. --Thing[1].Stats[Thing[3]].Value=Thing[1].Stats[Thing[3]].Value+Thing[4]
  2168. end
  2169. end
  2170. Thing[6].Parent=nil
  2171. table.remove(Effects,e)
  2172. end
  2173. end
  2174. if Thing[2]=="CylinderClang" then
  2175. if Thing[3]<=1 then
  2176. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  2177. Thing[7]=Thing[1].CFrame
  2178. effect("New Yeller",0,Thing[8],Thing[7])
  2179. Thing[8]=Thing[7]
  2180. Thing[3]=Thing[3]+Thing[4]
  2181. else
  2182. Part.Parent=nil
  2183. table.remove(Effects,e)
  2184. end
  2185. end
  2186. if Thing[2]=="showDamage" then
  2187. if Thing[6]<Thing[5] then
  2188. Thing[6]=Thing[6]+1
  2189. elseif Thing[6]<Thing[7] then
  2190. Thing[4].position=Thing[4].position+vt(0,-.2,0)
  2191. Thing[6]=Thing[6]+1
  2192. elseif Thing[6]<Thing[8] then
  2193. Thing[6]=Thing[6]+1
  2194. elseif Thing[6]<Thing[9] then
  2195. Thing[6]=Thing[6]+1
  2196. Thing[4].position=Thing[4].position+vt(0,.2,0)
  2197. Thing[3].TextStrokeTransparency=Thing[3].TextStrokeTransparency+.1
  2198. Thing[3].TextTransparency=Thing[3].TextTransparency+.1
  2199. else
  2200. Thing[1].Parent=nil
  2201. table.remove(Effects,e)
  2202. end
  2203. end
  2204. if Thing[2]~="DecreaseStat" and Thing[2]~="showDamage" then
  2205. if Thing[1].Transparency<=1 then
  2206. if Thing[2]=="Block1" then
  2207. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2208. Mesh=Thing[7]
  2209. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2210. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2211. elseif Thing[2]=="Block2" then
  2212. Thing[1].CFrame=Thing[1].CFrame
  2213. Mesh=Thing[7]
  2214. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2215. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2216. elseif Thing[2]=="Cylinder" then
  2217. Mesh=Thing[7]
  2218. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2219. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2220. elseif Thing[2]=="Cylinder2" then
  2221. Mesh=Thing[7]
  2222. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2223. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2224. if Thing[1].Transparency>=.5 then
  2225. Thing[1].BrickColor=BrickColor.new("Bright blue")
  2226. end
  2227. elseif Thing[2]=="Blood" then
  2228. Mesh=Thing[7]
  2229. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  2230. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2231. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2232. elseif Thing[2]=="Elec" then
  2233. Mesh=Thing[7]
  2234. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  2235. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2236. elseif Thing[2]=="Disappear" then
  2237. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2238. end
  2239. else
  2240. table.remove(Effects,e)
  2241. Thing[1].Parent=nil
  2242. end
  2243. end
  2244. end
  2245. --end
  2246. end
  2247. end
  2248. end
  2249. end
Advertisement
Add Comment
Please, Sign In to add comment