Advertisement
HenloMyDude

wip banish man

Jan 8th, 2020
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.85 KB | None | 0 0
  1.  
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer
  6.  
  7. plr = owner
  8. char = plr.Character
  9. ra = char["Right Arm"]
  10. la = char["Left Arm"]
  11. rl = char["Right Leg"]
  12. ll = char["Left Leg"]
  13. hed = char.Head
  14. root = char.HumanoidRootPart
  15. hum = char.Humanoid
  16.  
  17. IT = Instance.new
  18. Rad = math.rad
  19. Cos = math.cos
  20. Sin = math.sin
  21. BrickC = BrickColor.new
  22. C3 = Color3.new
  23. VT = Vector3.new
  24. CF = CFrame.new
  25. Angles = CFrame.Angles
  26.  
  27. anim = "Idle"
  28. attack = false
  29. local RS = char.Torso["Right Shoulder"]
  30. local LS = char.Torso["Left Shoulder"]
  31. local RH = char.Torso["Right Hip"]
  32. local LH = char.Torso["Left Hip"]
  33. local neck = char.Torso["Neck"]
  34. local root = char.HumanoidRootPart
  35. local rootj = root.RootJoint
  36. local sine = 0
  37. local RSnor = RS.C0
  38. local LSnor = LS.C0
  39. local RHnor = RH.C0
  40. local LHnor = LH.C0
  41. local RSnor2 = RS.C1
  42. local LSnor2 = LS.C1
  43. local RHnor2 = RH.C1
  44. local LHnor2 = LH.C1
  45. local necknor2 = neck.C1
  46. local rootjnor2 = rootj.C1
  47. local rootjnor = rootj.C0
  48. local necknor = neck.C0
  49. local tors = char.Torso
  50. hum.Animator:remove()
  51. mouse = plr:GetMouse()
  52. hold = false
  53. Debris = game:GetService("Debris")
  54. size = 1
  55.  
  56. clerp = function(a, b, t)
  57. return a:lerp(b, t)
  58. end
  59.  
  60. function RayCast(pos, direct, range, decendants)
  61. return workspace:FindPartOnRay(Ray.new(pos, direct.unit * range), decendants)
  62. end
  63.  
  64. Swait = function(number)
  65. if number == 0 or number == nil then
  66. game:GetService("RunService").Heartbeat:Wait()
  67. else
  68. for i = 1,number do
  69. game:GetService("RunService").Heartbeat:Wait()
  70. end
  71. end
  72. end
  73.  
  74. ezweld = function(p, a, b, cf)
  75. local weld = Instance.new("Weld",p)
  76. weld.Part0 = a
  77. weld.Part1 = b
  78. weld.C0 = cf
  79. return weld
  80. end
  81.  
  82. NewSound = function(p, id, pit, vol, loop)
  83. local Sound = Instance.new("Sound",p)
  84. Sound.Pitch = pit
  85. Sound.Volume = vol
  86. Sound.SoundId = "rbxassetid://" ..id
  87. Sound.Looped = loop
  88. Sound:Play()
  89. return Sound
  90. end
  91.  
  92. mode = "normal"
  93.  
  94. function Clerp(a, b, t)
  95. return a:lerp(b, t)
  96. end
  97.  
  98. ANGLES = Angles
  99. RAD = Rad
  100. COS = Cos
  101. SIN = Sin
  102. RightHip = RH
  103. LeftHip = LH
  104. RightShoulder = RS
  105. LeftShoulder = LS
  106. RootJoint = rootj
  107. Neck = neck
  108. ANIM = "Idle"
  109. Player_Size = 1
  110. SINE = 0
  111. Animation_Speed = 3
  112. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  113. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  114. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  115. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  116. RootPart = root
  117. RightLeg = rl
  118. LeftLeg = ll
  119. Head = hed
  120. Humanoid = hum
  121. Weapon = Instance.new("Model", char)
  122. Character = char
  123. Torso = tors
  124.  
  125. function MakeForm(PART,TYPE)
  126. if TYPE == "Cyl" then
  127. local MSH = IT("CylinderMesh",PART)
  128. elseif TYPE == "Ball" then
  129. local MSH = IT("SpecialMesh",PART)
  130. MSH.MeshType = "Sphere"
  131. elseif TYPE == "Wedge" then
  132. local MSH = IT("SpecialMesh",PART)
  133. MSH.MeshType = "Wedge"
  134. end
  135. end
  136.  
  137. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  138. local NEWMESH = IT(MESH)
  139. if MESH == "SpecialMesh" then
  140. NEWMESH.MeshType = MESHTYPE
  141. if MESHID ~= "nil" and MESHID ~= "" then
  142. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  143. end
  144. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  145. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  146. end
  147. end
  148. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  149. NEWMESH.Scale = SCALE
  150. NEWMESH.Parent = PARENT
  151. return NEWMESH
  152. end
  153.  
  154. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  155. local NEWPART = IT("Part")
  156. NEWPART.formFactor = FORMFACTOR
  157. NEWPART.Reflectance = REFLECTANCE
  158. NEWPART.Transparency = TRANSPARENCY
  159. NEWPART.CanCollide = false
  160. NEWPART.Locked = true
  161. NEWPART.Anchored = true
  162. if ANCHOR == false then
  163. NEWPART.Anchored = false
  164. end
  165. NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR))
  166. NEWPART.Name = NAME
  167. NEWPART.Size = SIZE
  168. NEWPART.Position = Torso.Position
  169. NEWPART.Material = MATERIAL
  170. NEWPART:BreakJoints()
  171. NEWPART.Parent = PARENT
  172. return NEWPART
  173. end
  174.  
  175. local S = IT("Sound")
  176. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  177. local NEWSOUND = nil
  178. coroutine.resume(coroutine.create(function()
  179. NEWSOUND = S:Clone()
  180. NEWSOUND.Parent = PARENT
  181. NEWSOUND.Volume = VOLUME
  182. NEWSOUND.Pitch = PITCH
  183. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  184. NEWSOUND:play()
  185. if DOESLOOP == true then
  186. NEWSOUND.Looped = true
  187. else
  188. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  189. NEWSOUND:remove()
  190. end
  191. end))
  192. return NEWSOUND
  193. end
  194.  
  195. MRANDOM = math.random
  196. Effects = Instance.new("Model", char)
  197.  
  198. function WACKYEFFECT(Table)
  199. local TYPE = (Table.EffectType or "Sphere")
  200. local SIZE = (Table.Size or VT(1,1,1))
  201. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  202. local TRANSPARENCY = (Table.Transparency or 0)
  203. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  204. local CFRAME = (Table.CFrame or Torso.CFrame)
  205. local MOVEDIRECTION = (Table.MoveToPos or nil)
  206. local ROTATION1 = (Table.RotationX or 0)
  207. local ROTATION2 = (Table.RotationY or 0)
  208. local ROTATION3 = (Table.RotationZ or 0)
  209. local MATERIAL = (Table.Material or "Neon")
  210. local COLOR = (Table.Color or C3(1,1,1))
  211. local TIME = (Table.Time or 45)
  212. local SOUNDID = (Table.SoundID or nil)
  213. local SOUNDPITCH = (Table.SoundPitch or nil)
  214. local SOUNDVOLUME = (Table.SoundVolume or nil)
  215. coroutine.resume(coroutine.create(function()
  216. local PLAYSSOUND = false
  217. local SOUND = nil
  218. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BrickColor.new("Pearl"), "Effect", VT(1,1,1), true)
  219. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  220. PLAYSSOUND = true
  221. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  222. end
  223. EFFECT.Color = COLOR
  224. local MSH = nil
  225. if TYPE == "Sphere" then
  226. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  227. elseif TYPE == "Block" then
  228. MSH = IT("BlockMesh",EFFECT)
  229. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  230. elseif TYPE == "Wave" then
  231. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  232. elseif TYPE == "Ring" then
  233. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  234. elseif TYPE == "Slash" then
  235. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  236. elseif TYPE == "Round Slash" then
  237. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  238. elseif TYPE == "Swirl" then
  239. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  240. elseif TYPE == "Skull" then
  241. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  242. elseif TYPE == "Crystal" then
  243. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  244. end
  245. if MSH ~= nil then
  246. local MOVESPEED = nil
  247. if MOVEDIRECTION ~= nil then
  248. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  249. end
  250. local GROWTH = SIZE - ENDSIZE
  251. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  252. if TYPE == "Block" then
  253. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  254. else
  255. EFFECT.CFrame = CFRAME
  256. end
  257. for LOOP = 1, TIME+1 do
  258. Swait()
  259. MSH.Scale = MSH.Scale - GROWTH/TIME
  260. if TYPE == "Wave" then
  261. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  262. end
  263. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  264. if TYPE == "Block" then
  265. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  266. else
  267. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  268. end
  269. if MOVEDIRECTION ~= nil then
  270. local ORI = EFFECT.Orientation
  271. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  272. EFFECT.Orientation = ORI
  273. end
  274. end
  275. if PLAYSSOUND == false then
  276. EFFECT:remove()
  277. else
  278. SOUND.Stopped:Connect(function()
  279. EFFECT:remove()
  280. end)
  281. end
  282. else
  283. if PLAYSSOUND == false then
  284. EFFECT:remove()
  285. else
  286. repeat Swait() until SOUND.Playing == false
  287. EFFECT:remove()
  288. end
  289. end
  290. end))
  291. end
  292.  
  293. local Particle = IT("ParticleEmitter",nil)
  294. Particle.Enabled = false
  295. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  296. Particle.LightEmission = 0.5
  297. Particle.Rate = 250
  298. Particle.ZOffset = 0.2
  299. Particle.Rotation = NumberRange.new(-180, 180)
  300. Particle.RotSpeed = NumberRange.new(-180, 180)
  301. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  302. Particle.Color = ColorSequence.new(C3(1,0,0),C3(1,0,0))
  303.  
  304. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  305. function ParticleEmitter(Table)
  306. local PRTCL = Particle:Clone()
  307. local Speed = Table.Speed or 5
  308. local Drag = Table.Drag or 0
  309. local Size1 = Table.Size1 or 1
  310. local Size2 = Table.Size2 or 5
  311. local Lifetime1 = Table.Lifetime1 or 1
  312. local Lifetime2 = Table.Lifetime2 or 1.5
  313. local Parent = Table.Parent or Torso
  314. local Emit = Table.Emit or 100
  315. local Offset = Table.Offset or 360
  316. local Acel = Table.Acel or VT(0,0,0)
  317. local Enabled = Table.Enabled or false
  318. PRTCL.Parent = Parent
  319. PRTCL.Size = NumberSequence.new(Size1,Size2)
  320. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  321. PRTCL.Speed = NumberRange.new(Speed)
  322. PRTCL.VelocitySpread = Offset
  323. PRTCL.Drag = Drag
  324. PRTCL.Acceleration = Acel
  325. if Enabled == false then
  326. PRTCL:Emit(Emit)
  327. Debris:AddItem(PRTCL,Lifetime2)
  328. else
  329. PRTCL.Enabled = true
  330. end
  331. return PRTCL
  332. end
  333.  
  334. RightArm = ra
  335.  
  336. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  337. local NEWWELD = IT(TYPE)
  338. NEWWELD.Part0 = PART0
  339. NEWWELD.Part1 = PART1
  340. NEWWELD.C0 = C0
  341. NEWWELD.C1 = C1
  342. NEWWELD.Parent = PARENT
  343. return NEWWELD
  344. end
  345.  
  346. local Main = Instance.new("Model", char)
  347. Weapon = Main
  348.  
  349. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  350. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  351. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  352. MakeForm(Part,"Wedge")
  353. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  354. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  355. MakeForm(Part,"Wedge")
  356. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  357. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  358. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  359. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  360. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  361. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  362. MakeForm(Part,"Cyl")
  363. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  364. for i = 1, 8 do
  365. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  366. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  367. end
  368. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  369. MakeForm(Part,"Cyl")
  370. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  371. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  372. MakeForm(Part,"Ball")
  373. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  374. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  375. MakeForm(Part,"Wedge")
  376. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  377. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  378. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  379. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  380. MakeForm(Part,"Cyl")
  381. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  382. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  383. MakeForm(Part,"Cyl")
  384. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  385. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  386. MakeForm(Part,"Cyl")
  387. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  388. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  389. MakeForm(Part,"Wedge")
  390. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  391. local LASTPART = Handle
  392. for i = 1, 10 do
  393. if LASTPART == Handle then
  394. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  395. LASTPART = Part
  396. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  397. else
  398. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  399. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  400. LASTPART = Part
  401. end
  402. end
  403.  
  404. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  405. MakeForm(Barrel,"Cyl")
  406. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  407. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  408. MakeForm(Part,"Cyl")
  409. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  410. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  411. MakeForm(Part,"Wedge")
  412. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  413. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  414. local MMhole = Hole
  415. MakeForm(Hole,"Cyl")
  416. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  417. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  418. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  419. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  420. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  421. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  422. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  423. --[[
  424. coroutine.resume(coroutine.create(function()
  425. while true do
  426. Swait()
  427. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(25))
  428. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-25))
  429. end
  430. end))
  431. ]]
  432. PRT1 = ParticleEmitter({Speed = 0.35, Drag = 0, Size1 = 0.25, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(1,5,1)})
  433. --PRT2 = ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  434.  
  435. for _, c in pairs(Weapon:GetDescendants()) do
  436. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  437. c.Material = "Glass"
  438. c.Color = C3(0,0,0)
  439. elseif c.ClassName == "Part" and c.Name == "Eye" then
  440. c.Color = C3(1,0,0)
  441. c.Material = "Neon"
  442. end
  443. end
  444.  
  445. Weapon.Parent = Character
  446. for _, c in pairs(Weapon:GetChildren()) do
  447. if c.ClassName == "Part" then
  448. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  449. end
  450. end
  451.  
  452. local Back = Instance.new("Model", char)
  453. Weapon = Back
  454.  
  455. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  456. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, Torso, Handle, CF(-0.35, 1, 0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(45), 0, 0), CF(0, 0.21, 0))
  457. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  458. MakeForm(Part,"Wedge")
  459. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  460. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  461. MakeForm(Part,"Wedge")
  462. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  463. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  464. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  465. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  466. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  467. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  468. MakeForm(Part,"Cyl")
  469. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  470. for i = 1, 8 do
  471. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  472. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  473. end
  474. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  475. MakeForm(Part,"Cyl")
  476. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  477. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  478. MakeForm(Part,"Ball")
  479. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  480. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  481. MakeForm(Part,"Wedge")
  482. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  483. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  484. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  485. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  486. MakeForm(Part,"Cyl")
  487. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  488. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  489. MakeForm(Part,"Cyl")
  490. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  491. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  492. MakeForm(Part,"Cyl")
  493. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  494. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  495. MakeForm(Part,"Wedge")
  496. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  497. local LASTPART = Handle
  498. for i = 1, 10 do
  499. if LASTPART == Handle then
  500. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  501. LASTPART = Part
  502. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  503. else
  504. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  505. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  506. LASTPART = Part
  507. end
  508. end
  509.  
  510. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  511. MakeForm(Barrel,"Cyl")
  512. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  513. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  514. MakeForm(Part,"Cyl")
  515. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  516. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  517. MakeForm(Part,"Wedge")
  518. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  519. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  520. BBhole = Hole
  521. MakeForm(Hole,"Cyl")
  522. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  523. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  524. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  525. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  526. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  527. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  528. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  529. --[[
  530. coroutine.resume(coroutine.create(function()
  531. while true do
  532. Swait()
  533. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(25))
  534. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-25))
  535. end
  536. end))
  537. ]]
  538.  
  539. PRT1 = ParticleEmitter({Speed = 0.35, Drag = 0, Size1 = 0.25, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(1,5,1)})
  540. --PRT2 = ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  541.  
  542. for _, c in pairs(Weapon:GetDescendants()) do
  543. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  544. c.Material = "Glass"
  545. c.Color = C3(0,0,0)
  546. elseif c.ClassName == "Part" and c.Name == "Eye" then
  547. c.Color = C3(1,0,0)
  548. c.Material = "Neon"
  549. end
  550. end
  551.  
  552. Weapon.Parent = Character
  553. for _, c in pairs(Weapon:GetChildren()) do
  554. if c.ClassName == "Part" then
  555. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  556. end
  557. end
  558.  
  559. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  560. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, Torso, Handle, CF(1.6, 0, 0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(135), 0, 0), CF(0, 0.21, 0))
  561. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  562. MakeForm(Part,"Wedge")
  563. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  564. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  565. MakeForm(Part,"Wedge")
  566. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  567. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  568. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  569. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  570. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  571. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  572. MakeForm(Part,"Cyl")
  573. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  574. for i = 1, 8 do
  575. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  576. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  577. end
  578. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  579. MakeForm(Part,"Cyl")
  580. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  581. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  582. MakeForm(Part,"Ball")
  583. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  584. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  585. MakeForm(Part,"Wedge")
  586. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  587. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  588. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  589. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  590. MakeForm(Part,"Cyl")
  591. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  592. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  593. MakeForm(Part,"Cyl")
  594. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  595. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  596. MakeForm(Part,"Cyl")
  597. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  598. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  599. MakeForm(Part,"Wedge")
  600. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  601. local LASTPART = Handle
  602. for i = 1, 10 do
  603. if LASTPART == Handle then
  604. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  605. LASTPART = Part
  606. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  607. else
  608. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  609. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  610. LASTPART = Part
  611. end
  612. end
  613.  
  614. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  615. MakeForm(Barrel,"Cyl")
  616. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  617. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  618. MakeForm(Part,"Cyl")
  619. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  620. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  621. MakeForm(Part,"Wedge")
  622. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  623. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  624. EEhole = Hole
  625. MakeForm(Hole,"Cyl")
  626. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  627. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  628. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  629. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  630. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  631. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  632. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  633. --[[
  634. coroutine.resume(coroutine.create(function()
  635. while true do
  636. Swait()
  637. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(25))
  638. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-25))
  639. end
  640. end))
  641. ]]
  642.  
  643. PRT1 = ParticleEmitter({Speed = 0.35, Drag = 0, Size1 = 0.25, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(1,5,1)})
  644. --PRT2 = ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  645.  
  646. for _, c in pairs(Weapon:GetDescendants()) do
  647. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  648. c.Material = "Glass"
  649. c.Color = C3(0,0,0)
  650. elseif c.ClassName == "Part" and c.Name == "Eye" then
  651. c.Color = C3(1,0,0)
  652. c.Material = "Neon"
  653. end
  654. end
  655.  
  656. Weapon.Parent = Character
  657. for _, c in pairs(Weapon:GetChildren()) do
  658. if c.ClassName == "Part" then
  659. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  660. end
  661. end
  662.  
  663. hold = false
  664.  
  665. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  666. local DIRECTION = CF(StartPos,EndPos).lookVector
  667. return RayCast(StartPos, DIRECTION, Distance, Ignore)
  668. end
  669.  
  670. function SpawnTrail(FROM,TO,BIG)
  671. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  672. MakeForm(TRAIL,"Cyl")
  673. local DIST = (FROM - TO).Magnitude
  674. if BIG == true then
  675. TRAIL.Size = VT(0.5,DIST,0.5)
  676. else
  677. TRAIL.Size = VT(0.25,DIST,0.25)
  678. end
  679. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  680. coroutine.resume(coroutine.create(function()
  681. for i = 1,11 do
  682. Swait()
  683. TRAIL.Transparency = TRAIL.Transparency + 0.035
  684. end
  685. TRAIL:remove()
  686. end))
  687. end
  688.  
  689. moveleg = true
  690.  
  691. function shooty(hole)
  692. hold = true
  693. attack = true
  694. repeat
  695. for i = 1,12 do
  696. Swait()
  697. if moveleg == false then
  698. RS.C1 = clerp(RS.C1, RSnor2, 0.3)
  699. LS.C1 = clerp(LS.C1, LSnor2, 0.3)
  700. neck.C1 = clerp(neck.C1, necknor2, 0.3)
  701. rootj.C1 = clerp(rootj.C1, rootjnor2, 0.3)
  702. RH.C1 = clerp(RH.C1, RHnor2, 0.3)
  703. LH.C1 = clerp(LH.C1, LHnor2, 0.3)
  704. end
  705. rootj.C0 = clerp(rootj.C0, rootjnor * CFrame.Angles(Rad(0), Rad(0), Rad(0)) * CFrame.new(0, 0, 0 + 0.025 * Sin(sine / 22)), 0.3)
  706. neck.C0 = clerp(neck.C0, necknor * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  707. RS.C0 = clerp(RS.C0, RSnor * CFrame.Angles(Rad(0), Rad(0), Rad(100)), 0.3)
  708. LS.C0 = clerp(LS.C0, LSnor * CFrame.Angles(Rad(-7), Rad(0), Rad(0)), 0.3)
  709. RH.C0 = clerp(RH.C0, RHnor * CFrame.Angles(Rad(-5), Rad(-9), Rad(0)) * CFrame.new(0, 0 - 0.025 * Sin(sine / 22), 0), 0.3)
  710. LH.C0 = clerp(LH.C0, LHnor * CFrame.Angles(Rad(-5), Rad(9), Rad(0)) * CFrame.new(0, 0 - 0.025 * Sin(sine / 22), 0), 0.3)
  711. end
  712. local HIT,POS = CastProperRay(hole.Position, mouse.Hit.p, 1000, Character)
  713. SpawnTrail(hole.Position,POS)
  714. if HIT ~= nil then
  715.  
  716. end
  717. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = hole.CFrame, MoveToPos = hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  718. WACKYEFFECT({Time = 30, EffectType = "Swirl", Size = VT(1,0.05,1), Size2 = VT(5,2,5), Transparency = 0, Transparency2 = 1, CFrame = hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 25, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  719. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  720. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  721. for i = 1,5 do
  722. Swait()
  723. if moveleg == false then
  724. RS.C1 = clerp(RS.C1, RSnor2, 0.3)
  725. LS.C1 = clerp(LS.C1, LSnor2, 0.3)
  726. neck.C1 = clerp(neck.C1, necknor2, 0.3)
  727. rootj.C1 = clerp(rootj.C1, rootjnor2, 0.3)
  728. RH.C1 = clerp(RH.C1, RHnor2, 0.3)
  729. LH.C1 = clerp(LH.C1, LHnor2, 0.3)
  730. end
  731. rootj.C0 = clerp(rootj.C0, rootjnor * CFrame.Angles(Rad(0), Rad(0), Rad(0)) * CFrame.new(0, 0, 0 + 0.025 * Sin(sine / 22)), 0.3)
  732. neck.C0 = clerp(neck.C0, necknor * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  733. RS.C0 = clerp(RS.C0, RSnor * CFrame.Angles(Rad(0), Rad(0), Rad(90)), 0.3)
  734. LS.C0 = clerp(LS.C0, LSnor * CFrame.Angles(Rad(-7), Rad(0), Rad(0)), 0.3)
  735. RH.C0 = clerp(RH.C0, RHnor * CFrame.Angles(Rad(-5), Rad(-9), Rad(0)) * CFrame.new(0, 0 - 0.025 * Sin(sine / 22), 0), 0.3)
  736. LH.C0 = clerp(LH.C0, LHnor * CFrame.Angles(Rad(-5), Rad(9), Rad(0)) * CFrame.new(0, 0 - 0.025 * Sin(sine / 22), 0), 0.3)
  737. end
  738. until hold == false
  739. attack = false
  740. hold = false
  741. end
  742.  
  743. function shooty2(hole1, hole2)
  744. hold = true
  745. attack = true
  746. local hole = hole1
  747. repeat
  748. for i = 1,5 do
  749. Swait()
  750. if moveleg == false then
  751. RS.C1 = clerp(RS.C1, RSnor2, 0.3)
  752. LS.C1 = clerp(LS.C1, LSnor2, 0.3)
  753. neck.C1 = clerp(neck.C1, necknor2, 0.3)
  754. rootj.C1 = clerp(rootj.C1, rootjnor2, 0.3)
  755. RH.C1 = clerp(RH.C1, RHnor2, 0.3)
  756. LH.C1 = clerp(LH.C1, LHnor2, 0.3)
  757. end
  758. rootj.C0 = clerp(rootj.C0, rootjnor * CFrame.Angles(Rad(0), Rad(0), Rad(0)) * CFrame.new(0, 0, 0 + 0.025 * Sin(sine / 22)), 0.3)
  759. neck.C0 = clerp(neck.C0, necknor * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  760. RS.C0 = clerp(RS.C0, RSnor * CFrame.Angles(Rad(-7), Rad(0), Rad(5)), 0.3)
  761. LS.C0 = clerp(LS.C0, LSnor * CFrame.Angles(Rad(-7), Rad(0), Rad(-5)), 0.3)
  762. RH.C0 = clerp(RH.C0, RHnor * CFrame.Angles(Rad(-5), Rad(-9), Rad(0)) * CFrame.new(0, 0 - 0.025 * Sin(sine / 22), 0), 0.3)
  763. LH.C0 = clerp(LH.C0, LHnor * CFrame.Angles(Rad(-5), Rad(9), Rad(0)) * CFrame.new(0, 0 - 0.025 * Sin(sine / 22), 0), 0.3)
  764. end
  765. hole = hole1
  766. local HIT,POS = CastProperRay(hole.Position, mouse.Hit.p, 1000, Character)
  767. SpawnTrail(hole.Position,POS)
  768. if HIT ~= nil then
  769.  
  770. end
  771. WACKYEFFECT({Time = 25, EffectType = "Swirl", Size = VT(0.3,0,0.3), Size2 = VT(2,1.5,2), Transparency = 0, Transparency2 = 1, CFrame = hole.CFrame, MoveToPos = hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  772. WACKYEFFECT({Time = 30, EffectType = "Swirl", Size = VT(1,0.05,1), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 25, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  773. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  774. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  775. hole = hole2
  776. local HIT,POS = CastProperRay(hole.Position, mouse.Hit.p, 1000, Character)
  777. SpawnTrail(hole.Position,POS)
  778. if HIT ~= nil then
  779.  
  780. end
  781. WACKYEFFECT({Time = 25, EffectType = "Swirl", Size = VT(0.3,0,0.3), Size2 = VT(2,1.5,2), Transparency = 0, Transparency2 = 1, CFrame = hole.CFrame, MoveToPos = hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  782. WACKYEFFECT({Time = 30, EffectType = "Swirl", Size = VT(1,0.05,1), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 25, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  783. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  784. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  785. for i = 1,5 do
  786. Swait()
  787. if moveleg == false then
  788. RS.C1 = clerp(RS.C1, RSnor2, 0.3)
  789. LS.C1 = clerp(LS.C1, LSnor2, 0.3)
  790. neck.C1 = clerp(neck.C1, necknor2, 0.3)
  791. rootj.C1 = clerp(rootj.C1, rootjnor2, 0.3)
  792. RH.C1 = clerp(RH.C1, RHnor2, 0.3)
  793. LH.C1 = clerp(LH.C1, LHnor2, 0.3)
  794. end
  795. rootj.C0 = clerp(rootj.C0, rootjnor * CFrame.Angles(Rad(0), Rad(0), Rad(0)) * CFrame.new(0, 0, 0 + 0.025 * Sin(sine / 22)), 0.3)
  796. neck.C0 = clerp(neck.C0, necknor * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  797. RS.C0 = clerp(RS.C0, RSnor * CFrame.Angles(Rad(-7), Rad(0), Rad(15)), 0.3)
  798. LS.C0 = clerp(LS.C0, LSnor * CFrame.Angles(Rad(-7), Rad(0), Rad(-15)), 0.3)
  799. RH.C0 = clerp(RH.C0, RHnor * CFrame.Angles(Rad(-5), Rad(-9), Rad(0)) * CFrame.new(0, 0 - 0.025 * Sin(sine / 22), 0), 0.3)
  800. LH.C0 = clerp(LH.C0, LHnor * CFrame.Angles(Rad(-5), Rad(9), Rad(0)) * CFrame.new(0, 0 - 0.025 * Sin(sine / 22), 0), 0.3)
  801. end
  802. until hold == false
  803. local hole = hole1
  804. attack = false
  805. hold = false
  806. end
  807.  
  808. mouse.KeyDown:connect(function(key)
  809. if key == "z" then
  810. shooty(MMhole)
  811. end
  812. if key == "x" then
  813. shooty2(BBhole, EEhole)
  814. end
  815. end)
  816.  
  817. mouse.KeyUp:connect(function(key)
  818. if key == "z" then
  819. hold = false
  820. end
  821. if key == "x" then
  822. hold = false
  823. end
  824. end)
  825.  
  826. NewSound(hed, 649634100, 0.7, 10, false)
  827. local music = NewSound(hed, 1138145518, 1, 5, true)
  828.  
  829. while true do
  830. Swait()
  831. sine = sine + 1
  832. SINE = SINE + (2 / 3)
  833. torsvel = (root.Velocity * VT(1, 0, 1)).magnitude
  834. torsverticalvel = root.Velocity.y
  835. hitfloor = RayCast(root.Position, (CF(root.Position, root.Position + VT(0, -1, 0))).lookVector, 4*size, char)
  836. local WALKSPEEDVALUE = 6 / (hum.WalkSpeed / 16)
  837. if torsvel < 1 and hitfloor ~= nil then
  838. anim = "Idle"
  839. if attack == false then
  840. if mode == "normal" then
  841. RS.C1 = clerp(RS.C1, RSnor2, 0.3)
  842. LS.C1 = clerp(LS.C1, LSnor2, 0.3)
  843. neck.C1 = clerp(neck.C1, necknor2, 0.3)
  844. rootj.C1 = clerp(rootj.C1, rootjnor2, 0.3)
  845. RH.C1 = clerp(RH.C1, RHnor2, 0.3)
  846. LH.C1 = clerp(LH.C1, LHnor2, 0.3)
  847. rootj.C0 = clerp(rootj.C0, rootjnor * CFrame.Angles(Rad(0), Rad(0), Rad(-25)) * CFrame.new(0, 0, 0 + 0.025 * Sin(sine / 22)), 0.3)
  848. neck.C0 = clerp(neck.C0, necknor * CFrame.Angles(Rad(0), Rad(0), Rad(25)), 0.3)
  849. RS.C0 = clerp(RS.C0, RSnor * CFrame.Angles(Rad(45), Rad(0), Rad(45)) * CFrame.new(0, -0.25, -0.25), 0.3)
  850. LS.C0 = clerp(LS.C0, LSnor * CFrame.Angles(Rad(45), Rad(0), Rad(30)) * CFrame.new(0.15, -0.15, -0.25), 0.3)
  851. RH.C0 = clerp(RH.C0, RHnor * CFrame.Angles(Rad(-3), Rad(-3), Rad(2)) * CFrame.new(0, 0 - 0.025 * Sin(sine / 22), 0), 0.3)
  852. LH.C0 = clerp(LH.C0, LHnor * CFrame.Angles(Rad(-8), Rad(4), Rad(-4)) * CFrame.new(0, 0 - 0.025 * Sin(sine / 22), 0), 0.3)
  853. end
  854. end
  855. if attack == true and moveleg == true then
  856. RS.C1 = clerp(RS.C1, RSnor2, 0.3)
  857. LS.C1 = clerp(LS.C1, LSnor2, 0.3)
  858. neck.C1 = clerp(neck.C1, necknor2, 0.3)
  859. rootj.C1 = clerp(rootj.C1, rootjnor2, 0.3)
  860. RH.C1 = clerp(RH.C1, RHnor2, 0.3)
  861. LH.C1 = clerp(LH.C1, LHnor2, 0.3)
  862. end
  863. end
  864. if torsvel > 1 and hitfloor ~= nil then
  865. anim = "Walk"
  866. if attack == false then
  867. --if mode == "normal" then
  868. --[[
  869. rootj.C0 = clerp(rootj.C0, rootjnor * CFrame.Angles(Rad(0), Rad(0), Rad(0)) * CFrame.new(0, 0, 0 + 0.15 * Sin(sine / (WALKSPEEDVALUE / 2))), 0.3)
  870. neck.C0 = clerp(neck.C0, necknor * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  871. RS.C0 = clerp(RS.C0, RSnor * CFrame.Angles(Rad(0), Rad(0), Rad(155)) * CFrame.new(0, 0, 0), 0.3)
  872. LS.C0 = clerp(LS.C0, LSnor * CFrame.Angles(Rad(0), Rad(0), Rad(-76 * Cos(sine / WALKSPEEDVALUE))) * CFrame.new(0, 0, 0), 0.3)
  873. RH.C0 = clerp(RH.C0, RHnor * CFrame.Angles(Rad(0), Rad(0), Rad(76 * Cos(sine / WALKSPEEDVALUE))) * CFrame.new(0.15 + 0.15 * Cos(sine / WALKSPEEDVALUE*2), 0 * Sin(sine / WALKSPEEDVALUE*2), 0), 0.3)
  874. LH.C0 = clerp(LH.C0, LHnor * CFrame.Angles(Rad(0), Rad(0), Rad(76 * Cos(sine / WALKSPEEDVALUE))) * CFrame.new(-0.15 + 0.15 * Cos(sine / WALKSPEEDVALUE*2), 0 * Sin(sine / WALKSPEEDVALUE*2), 0), 0.3)
  875. ]]--
  876. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  877. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  878. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  879. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  880. neck.C0 = clerp(neck.C0, necknor * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
  881. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.3)
  882. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(130), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  883. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  884. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  885. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  886.  
  887. --end
  888. end
  889. if attack == true and moveleg == true then
  890. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  891. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  892. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  893. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  894. end
  895. end
  896. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement