Advertisement
Dark_EccentricYT

Untitled

Dec 4th, 2016
2,085
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.44 KB | None | 0 0
  1. New = function(Object, Parent, Name, Data)
  2. local Object = Instance.new(Object)
  3. for Index, Value in pairs(Data or {}) do
  4. Object[Index] = Value
  5. end
  6. Object.Parent = Parent
  7. Object.Name = Name
  8. return Object
  9. end
  10.  
  11. local Player = game:GetService("Players").LocalPlayer
  12. repeat wait(1) until Player.Character
  13. local Character = Player.Character
  14. Character.Animate.Disabled = true
  15. local la = Character:FindFirstChild("Left Arm")
  16. local ra = Character:FindFirstChild("Right Arm")
  17. local ll = Character:FindFirstChild("Left Leg")
  18. local rl = Character:FindFirstChild("Right Leg")
  19. local Torso = Character:FindFirstChild("Torso")
  20. local Humanoid = Character:findFirstChild("Humanoid")
  21. local Mouse = Player:GetMouse()
  22. Character.Animate.Disabled = true
  23. Character.Sound:Destroy()
  24. Humanoid.Animator:Destroy()
  25.  
  26. Staff = New("Model",Character,"Staff",{})
  27. Handle = New("Part",Staff,"Handle",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Wood,FormFactor = Enum.FormFactor.Symmetric,Shape = Enum.PartType.Cylinder,Size = Vector3.new(4.69999981, 0.200000003, 0.300000042),CFrame = CFrame.new(0.57149899, 1.88927495, -0.898910999, -0.944701791, 0.319970548, -0.0718207732, -0.327606022, -0.930582702, 0.163368165, -0.0145623889, 0.177864254, 0.983946562),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.454902, 0.52549, 0.615686),})
  28. Part1 = New("Part",Staff,"Part1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Wood,FormFactor = Enum.FormFactor.Symmetric,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.38, 0.200000003, 0.300000042),CFrame = CFrame.new(2.87910843, 2.26322985, -0.792562008, -0.952355325, -0.29641813, -0.0718205795, 0.281945944, -0.945417762, 0.163367048, -0.116327964, 0.135336339, 0.983944893),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.454902, 0.52549, 0.615686),})
  29. mot = New("Motor",Part1,"mot",{Part0 = Part1,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.952353716, 0.281943917, -0.116327204, -0.296420157, -0.945419192, 0.135335654, -0.0718207732, 0.163368165, 0.983946562),C1 = CFrame.new(-2.30406189, 0.409280896, -1.1920929e-007, -0.944701791, -0.327606022, -0.0145623889, 0.319970548, -0.930582702, 0.177864254, -0.0718207732, 0.163368165, 0.983946562),})
  30. Part2 = New("Part",Staff,"Part2",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Wood,FormFactor = Enum.FormFactor.Symmetric,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.699999809, 0.200000003, 0.300000042),CFrame = CFrame.new(3.80125666, 2.18647099, -0.712507248, -0.94470191, 0.319973052, -0.0718205795, -0.327603519, -0.930582702, 0.163367048, -0.014562604, 0.177865237, 0.983944893),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.454902, 0.52549, 0.615686),})
  31. mot = New("Motor",Part2,"mot",{Part0 = Part2,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.944701791, -0.327606022, -0.0145623889, 0.319970548, -0.930582702, 0.177864254, -0.0718207732, 0.163368165, 0.983946562),C1 = CFrame.new(-3.15123606, 0.790008068, 0, -0.944701791, -0.327606022, -0.0145623889, 0.319970548, -0.930582702, 0.177864254, -0.0718207732, 0.163368165, 0.983946562),})
  32. Part3 = New("Part",Staff,"Part3",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Wood,FormFactor = Enum.FormFactor.Symmetric,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.899999797, 0.200000003, 0.300000042),CFrame = CFrame.new(4.27721882, 2.67641687, -0.759113848, -0.426075667, 0.901833594, -0.0718205795, -0.896977842, -0.41077888, 0.163367048, 0.117829539, 0.134031072, 0.983944893),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.454902, 0.52549, 0.615686),})
  33. mot = New("Motor",Part3,"mot",{Part0 = Part3,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.426077485, -0.896979511, 0.117828958, 0.901831865, -0.410777032, 0.134030208, -0.0718207732, 0.163368165, 0.983946562),C1 = CFrame.new(-3.76071024, 0.4780761, -4.17232513e-007, -0.944701791, -0.327606022, -0.0145623889, 0.319970548, -0.930582702, 0.177864254, -0.0718207732, 0.163368165, 0.983946562),})
  34. Part4 = New("Part",Staff,"Part4",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Wood,FormFactor = Enum.FormFactor.Symmetric,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.899999797, 0.200000003, 0.300000042),CFrame = CFrame.new(4.18060207, 3.31991601, -0.873009622, 0.663661063, 0.744579256, -0.0718205795, -0.728600919, 0.665168226, 0.163367048, 0.169415876, -0.0560925454, 0.983944893),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.454902, 0.52549, 0.615686),})
  35. mot = New("Motor",Part4,"mot",{Part0 = Part4,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.663658738, -0.728599966, 0.169414878, 0.74458015, 0.665170491, -0.0560923368, -0.0718207732, 0.163368165, 0.983946562),C1 = CFrame.new(-3.87859344, -0.171925187, -8.94069672e-007, -0.944701791, -0.327606022, -0.0145623889, 0.319970548, -0.930582702, 0.177864254, -0.0718207732, 0.163368165, 0.983946562),})
  36. Snowball = New("Part",Staff,"Snowball",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Shape = Enum.PartType.Ball,Size = Vector3.new(0.400000006, 0.400000006, 0.400000006),CFrame = CFrame.new(3.51262951, 2.90919495, -0.85357672, 0.319973052, 0.94470191, -0.0718205795, -0.930582702, 0.327603519, 0.163367048, 0.177865237, 0.014562604, 0.983944893),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.686275, 0.866667, 1),})
  37. PointLight = New("PointLight",Snowball,"PointLight",{Color = Color3.new(0.741176, 1, 1),Brightness = 6,Range = 7,Shadows = true,})
  38. mot = New("Motor",Snowball,"mot",{Part0 = Snowball,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.319970548, -0.930582702, 0.177864254, 0.944701791, 0.327606022, 0.0145623889, -0.0718207732, 0.163368165, 0.983946562),C1 = CFrame.new(-3.11328602, 1.10864639e-005, -4.64916229e-006, -0.944701791, -0.327606022, -0.0145623889, 0.319970548, -0.930582702, 0.177864254, -0.0718207732, 0.163368165, 0.983946562),})
  39.  
  40. local LimbAccess = {LA=true,RA=true,LL=true,RL=true,RJ=true,NJ=true,Weapon=true}
  41. local State = "Lounge"
  42. local Active = true
  43. local Mode = "Staff"
  44. function Lerp(a,b,i) -- A = First pos, B = Second Pos, i = Speed
  45. return a:lerp(b,i)
  46. end
  47. Left_Arm = Instance.new("Weld",Torso)
  48. Left_Arm.Part0 = Torso
  49. Left_Arm.Part1 = la
  50. Left_Arm.Name = "LeftArmJ"
  51. Left_Arm.C0 = CFrame.new(-1.5,0.5,0)
  52. Left_Arm.C1 = CFrame.new(0,0.5,0)
  53. Right_Arm = Instance.new("Weld",Torso)
  54. Right_Arm.Part0 = Torso
  55. Right_Arm.Part1 = ra
  56. Right_Arm.Name = "RightArmJ"
  57. Right_Arm.C0 = CFrame.new(1.5,0.5,0)
  58. Right_Arm.C1 = CFrame.new(0,0.5,0)
  59. Left_Leg = Instance.new("Weld",Torso)
  60. Left_Leg.Part0 = Torso
  61. Left_Leg.Part1 = ll
  62. Left_Leg.Name = "LeftLegJ"
  63. Left_Leg.C0 = CFrame.new(-0.5,-1,0)
  64. Left_Leg.C1 = CFrame.new(0,1,0)
  65. Right_Leg = Instance.new("Weld",Torso)
  66. Right_Leg.Name = "RightLegJ"
  67. Right_Leg.Part0 = Torso
  68. Right_Leg.Part1 = rl
  69. Right_Leg.C0 = CFrame.new(0.5,-1,0)
  70. Right_Leg.C1 = CFrame.new(0,1,0)
  71. Staffw = Instance.new("Weld",Torso)
  72. Staffw.Part0 = Torso
  73. Staffw.Part1 = Handle
  74. Staffw.Name = "StaffJoint"
  75.  
  76. local RootJoint = Instance.new("Weld",Character["HumanoidRootPart"])
  77. RootJoint.Name = "RootJ"
  78. RootJoint.Part0 = Character["HumanoidRootPart"]
  79. RootJoint.Part1 = Torso
  80.  
  81. local NeckJ = Instance.new("Weld",Torso)
  82. NeckJ.Name = "NeckJ"
  83. NeckJ.Part0 = Torso
  84. NeckJ.Part1 = Character.Head
  85. NeckJ.C1 = CFrame.new(0,-1.5,0)
  86.  
  87. function Change()
  88.  
  89. end
  90. _G.MoveCheck1 = false
  91. _G.SatanState = false
  92.  
  93. function SpellBinder(SpellID)
  94. if _G.MoveCheck1 == false then
  95. _G.MoveCheck1 = true
  96. if _G.SatanState == false then
  97. _G.SatanState = true
  98.  
  99. ID = 357442018
  100. _G.SpellBindStuff = 0
  101. _G.SpellBind = game:GetObjects("rbxassetid://437368177")[1]
  102. _G.SpellBind.Decal.Texture = "rbxassetid://" .. SpellID
  103. _G.SpellBind.Decal1.Texture = "rbxassetid://" .. SpellID
  104. _G.SpellBind.Parent = game.Players.LocalPlayer.Character
  105. _G.SpellBind.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame - game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 35
  106. _G.SpellBind.CFrame = CFrame.new(_G.SpellBind.Position, game.Players.LocalPlayer.Character.Torso.Position)* CFrame.Angles(1.6,0,0)
  107. _G.SpellBind.ParticleEmitter.Color = ColorSequence.new(Color3.new(255,0,0))
  108. _G.SpellBind.ParticleEmitter.Size = NumberSequence.new(5)
  109.  
  110. _G.UnsealEnforca = game:GetService("RunService").RenderStepped:connect(function()
  111. _G.SpellBind.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 35
  112. _G.SpellBind.CFrame = CFrame.new(_G.SpellBind.Position, game.Players.LocalPlayer.Character.Torso.Position)* CFrame.Angles(1.6,_G.SpellBindStuff,0)
  113. _G.SpellBindStuff = _G.SpellBindStuff + 0.012
  114. end)
  115.  
  116.  
  117. for i = 1, 117 do
  118. _G.SpellBind.Size = _G.SpellBind.Size + Vector3.new(0.50,0,0.50)
  119. wait(0.07)
  120. end
  121.  
  122.  
  123. wait(0.1)
  124.  
  125. _G.chatcustom("You shall not pass!", "Really red", game.Players.LocalPlayer)
  126. _G.MoveCheck1 = false
  127. else
  128. _G.MoveCheck1 = true
  129. wait(0.6)
  130.  
  131. for i = 1, 117 do
  132. _G.SpellBind.Size = _G.SpellBind.Size - Vector3.new(0.50,0,0.50)
  133. wait(0.07)
  134. end
  135.  
  136.  
  137. _G.UnsealEnforca:disconnect()
  138. _G.SpellBind.Parent = _G.newParent
  139. wait(0.1)
  140. _G.SatanState = false
  141. _G.MoveCheck1 = false
  142. end
  143. end
  144. end
  145.  
  146.  
  147.  
  148. _G.ConnectionAgent = Mouse.KeyDown:connect(function(key)
  149. if key == "q" and State == "Flying" and Active == true then
  150. State = "Lounge"
  151. Humanoid.WalkSpeed = 30
  152. elseif key == "q" and State == "Lounge" and Active == true then
  153. State = "Battle"
  154. Humanoid.WalkSpeed = 20
  155. elseif key == "q" and State == "Battle" and Active == true then
  156. State = "Flying"
  157. Humanoid.WalkSpeed = 50
  158. elseif key == "e" and State == "Battle" and Active == true then
  159. SpellBinder(375165574)
  160. elseif key == "e" and Active == true then
  161. --[[
  162. Humanoid.WalkSpeed = 0
  163. State = "Changing"
  164. Mode = "Changing"
  165. Active = false
  166. Change()
  167. --]]
  168. end
  169. end)
  170.  
  171. Player.Character.Humanoid.Died:connect(function()
  172. _G.ConnectionAgent:disconnect()
  173. end)
  174.  
  175. angle = 0
  176. angle2 = 0
  177. angle3 = 0
  178. anglespeed = 2
  179. anglespeed2 = 1
  180. anglespeed3 = .4
  181. game:GetService("RunService").Stepped:connect(function()
  182. angle = ((angle % 100) + anglespeed/10)
  183. angle2 = ((angle2 % 100) + anglespeed2/10)
  184. angle3 = ((angle3 % 100) + anglespeed3/10) --it'll go from 0 to 100 and repeat in a loop. basically it will get to its destination and back --ok
  185. if Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude < 2 and State == "Flying" then -- idle
  186. if not Humanoid.WalkSpeed == 50 then
  187. Humanoid.WalkSpeed = 50
  188. end
  189. if LimbAccess.RJ then
  190. RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.5,.5+math.sin(angle2)*.1,0)*CFrame.Angles(math.sin(angle3)*.02,math.rad(90),0),.2)
  191. end
  192. if LimbAccess.LA then
  193. Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.2,0.35,0)*CFrame.Angles(math.rad(-25)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(0)+math.sin(angle3)*.06),.1)
  194. end
  195. if LimbAccess.NJ then
  196. NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(-45)+(math.sin(-angle3)*.04),0),.25)
  197. end
  198. if LimbAccess.RA then
  199. Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-25)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(-5)+math.sin(angle3)*.06),.1)
  200. end
  201. if LimbAccess.LL then
  202. Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,(math.sin(angle3)*.1)-.6,-.2)*CFrame.Angles(math.rad(35)+(math.sin(angle3)*.1),0,math.rad(-5)),.1)
  203. end
  204. if LimbAccess.RL then
  205. Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,(math.sin(angle3)*.1)-.7,-.1)*CFrame.Angles(math.rad(45)+(math.sin(angle3)*.1),0,math.rad(5)),.1)
  206. end
  207. if LimbAccess.Weapon then
  208. Staffw.C0 = Lerp(Staffw.C0,CFrame.new(0,-1,0),.2)
  209. Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,0,-.4)*CFrame.Angles(math.rad(180),math.rad(180),0),.2)
  210. end
  211. elseif Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude > 2 and State == "Flying" then -- walk
  212. if LimbAccess.RJ then
  213. RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.5,.5+math.sin(angle2)*.1,0)*CFrame.Angles(math.sin(angle3)*.02,math.rad(90),0),.2)
  214. end
  215. if LimbAccess.LA then
  216. Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.2,0.35,0)*CFrame.Angles(math.rad(-25)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(7)+math.sin(angle3)*.06),.1)
  217. end
  218. if LimbAccess.NJ then
  219. NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(-45)+(math.sin(-angle3)*.04),0),.25)
  220. end
  221. if LimbAccess.RA then
  222. Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-25)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(-5)+math.sin(angle3)*.06),.1)
  223. end
  224. if LimbAccess.LL then
  225. Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,(math.sin(angle3)*.1)-.6,-.2)*CFrame.Angles(math.rad(35)+(math.sin(angle3)*.1),0,math.rad(-5)),.1)
  226. end
  227. if LimbAccess.RL then
  228. Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,(math.sin(angle3)*.1)-.7,-.1)*CFrame.Angles(math.rad(45)+(math.sin(angle3)*.1),0,math.rad(5)),.1)
  229. end
  230. if LimbAccess.Weapon then
  231. Staffw.C0 = Lerp(Staffw.C0,CFrame.new(0,-1,0),.2)
  232. Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,0,-.4)*CFrame.Angles(math.rad(180),math.rad(180),0),.2)
  233. end
  234. end
  235. if Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude < 2 and State == "Lounge" then -- idle
  236. if not Humanoid.WalkSpeed == 30 then
  237. Humanoid.WalkSpeed = 30
  238. end
  239. if LimbAccess.RJ then
  240. RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.5,0,0)*CFrame.Angles(math.sin(angle3)*.02,math.rad(0),0),.2)
  241. end
  242. if LimbAccess.LA then
  243. Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(5)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(-3)+math.sin(angle3)*.06),.1)
  244. end
  245. if LimbAccess.NJ then
  246. NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(0)+(math.sin(-angle3)*.04),0),.25)
  247. end
  248. if LimbAccess.RA then
  249. Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(5)+(math.sin(angle3)*.1),math.rad(0),math.rad(3)),.1)
  250. end
  251. if LimbAccess.LL then
  252. Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,-1,0)*CFrame.Angles(0,0,math.rad(-5)+math.sin(angle3)*.02),.1)
  253. end
  254. if LimbAccess.RL then
  255. Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,-1,0)*CFrame.Angles(0,0,math.rad(15)+math.sin(angle3)*-.02),.1)
  256. end
  257. if LimbAccess.Weapon then
  258. Staffw.C0 = Lerp(Staffw.C0,CFrame.new(0,0,.5),.2)
  259. Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(180),math.rad(180),math.rad(-45)),.2)
  260. end
  261. elseif Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude > 2 and State == "Lounge" then -- walk
  262. if LimbAccess.RJ then
  263. RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.2,math.sin(angle2)*.1,0)*CFrame.Angles(0,math.rad(0),0),.2)
  264. end
  265. if LimbAccess.LA then
  266. Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(5)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(-23)+math.sin(angle3)*.06),.1)
  267. end
  268. if LimbAccess.NJ then
  269. NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(0)+(math.sin(-angle3)*.04),0),.25)
  270. end
  271. if LimbAccess.RA then
  272. Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(5)+(math.sin(angle3)*.1),math.rad(0),math.rad(23)),.1)
  273. end
  274. if LimbAccess.LL then
  275. Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,(math.sin(angle3)*.1)-.6,-.2)*CFrame.Angles(math.rad(-15)+(math.sin(angle3)*.1),0,math.rad(-5)),.1)
  276. end
  277. if LimbAccess.RL then
  278. Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,(math.sin(angle3)*.1)-.7,-.1)*CFrame.Angles(math.rad(-15)+(math.sin(angle3)*.1),0,math.rad(5)),.1)
  279. end
  280. if LimbAccess.Weapon then
  281. Staffw.C0 = Lerp(Staffw.C0,CFrame.new(0,0,.5),.2)
  282. Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(180),math.rad(180),math.rad(-45)),.2)
  283. end
  284. end
  285. if Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude < 2 and State == "Battle" then -- idle
  286. if not Humanoid.WalkSpeed == 20 then
  287. Humanoid.WalkSpeed = 20
  288. end
  289. if LimbAccess.RJ then
  290. RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.5,.5+math.sin(angle2)*.1,0)*CFrame.Angles(math.sin(angle3)*.02,math.rad(0),0),.2)
  291. end
  292. if LimbAccess.LA then
  293. Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.1,0.5,-.7)*CFrame.Angles(math.rad(5),math.rad(-135),math.rad(-90)),.1)
  294. end
  295. if LimbAccess.NJ then
  296. NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(0)+(math.sin(-angle3)*.04),0),.25)
  297. end
  298. if LimbAccess.RA then
  299. Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.1,0.5,-.7)*CFrame.Angles(math.rad(5),math.rad(135),math.rad(90)),.1)
  300. end
  301. if LimbAccess.LL then
  302. Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,-1,0)*CFrame.Angles(0,0,math.rad(-5)+math.sin(angle3)*.02),.1)
  303. end
  304. if LimbAccess.RL then
  305. Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,-1,0)*CFrame.Angles(0,0,math.rad(5)+math.sin(angle3)*-.02),.1)
  306. end
  307. if LimbAccess.Weapon then
  308. Staffw.C0 = Lerp(Staffw.C0,CFrame.new(0,-.5,-1),.2)
  309. Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,.6,0)*CFrame.Angles(math.rad(90),math.rad(180),math.rad(-90)),.2)
  310. end
  311. elseif Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude > 2 and State == "Battle" then -- walk
  312. if LimbAccess.RJ then
  313. RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.2,.5+math.sin(angle2)*.1,0)*CFrame.Angles(0,math.rad(0),0),.2)
  314. end
  315. if LimbAccess.LA then
  316. Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-.9,0.6,-.8)*CFrame.Angles(math.rad(5),math.rad(-135),math.rad(-90)),.1)
  317. end
  318. if LimbAccess.NJ then
  319. NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(0)+(math.sin(-angle3)*.04),0),.25)
  320. end
  321. if LimbAccess.RA then
  322. Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.1,0.4,-.3)*CFrame.Angles(math.rad(5),math.rad(135),math.rad(90)),.1)
  323. end
  324. if LimbAccess.LL then
  325. Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,(math.sin(angle3)*.1)-.7,-.2)*CFrame.Angles(math.rad(-15)+(math.sin(angle3)*.1),0,math.rad(-5)),.1)
  326. end
  327. if LimbAccess.RL then
  328. Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,(math.sin(angle3)*.1)-.7,-.1)*CFrame.Angles(math.rad(-15)+(math.sin(angle3)*.1),0,math.rad(5)),.1)
  329. end
  330. if LimbAccess.Weapon then
  331. Staffw.C0 = Lerp(Staffw.C0,CFrame.new(.4,.5,-1),.2)
  332. Staffw.C1 = Lerp(Staffw.C1,CFrame.new(0,.1,0)*CFrame.Angles(math.rad(135),math.rad(120),math.rad(-135)),.2)
  333. end
  334. end
  335. if Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude < 2 and State == "Changing" then -- idle
  336. if LimbAccess.RJ then
  337. RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.5,.5+math.sin(angle2)*.1,0)*CFrame.Angles(math.sin(angle3)*.02,math.rad(0),0),.2)
  338. end
  339. if LimbAccess.LA then
  340. Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.3,0.51,-.7)*CFrame.Angles(math.rad(5),math.rad(-165),math.rad(-90)),.1)
  341. end
  342. if LimbAccess.NJ then
  343. NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-10),math.rad(0)+(math.sin(-angle3)*.04),0),.25)
  344. end
  345. if LimbAccess.RA then
  346. Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.3,0.49,-.7)*CFrame.Angles(math.rad(5),math.rad(165),math.rad(90)),.1)
  347. end
  348. if LimbAccess.LL then
  349. Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-1,-1,-.4)*CFrame.Angles(0,math.rad(25),math.rad(75)),.1)
  350. end
  351. if LimbAccess.RL then
  352. Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(1,-1,-.4)*CFrame.Angles(0,math.rad(-25),math.rad(-75)),.1)
  353. end
  354. end
  355. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement