Advertisement
vibrantsinger423

shot

Jun 1st, 2019
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.90 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  5.  
  6. local Player = game:GetService("Players").LocalPlayer
  7. Character=Player.Character
  8. Humanoid=Character.Humanoid
  9.  
  10. Torso=Character.Torso
  11. Head = Character.Head
  12. LeftArm=Character["Left Arm"]
  13. LeftLeg=Character["Left Leg"]
  14. RightArm=Character["Right Arm"]
  15. RightLeg=Character["Right Leg"]
  16.  
  17. LS=Torso["Left Shoulder"]
  18. LH=Torso["Left Hip"]
  19. RS=Torso["Right Shoulder"]
  20. RH=Torso["Right Hip"]
  21. Neck=Torso.Neck
  22.  
  23. equipped=true
  24.  
  25. local idle=0
  26. local anim="Idle"
  27. attack=false
  28. overload=false
  29.  
  30. vt=Vector3.new
  31. cf=CFrame.new
  32. euler=CFrame.fromEulerAnglesXYZ
  33. angles=CFrame.Angles
  34. cloaked=false
  35. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  36. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  37. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  38. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  39. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  40. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  41. RootPart=Character.HumanoidRootPart
  42. RootJoint=RootPart.RootJoint
  43. RootCF=euler(-1.57,0,3.14)
  44.  
  45. mouse=Player:GetMouse()
  46. it = Instance.new
  47. euler=CFrame.fromEulerAnglesXYZ
  48. angles=CFrame.Angles
  49. local RbxUtility = LoadLibrary("RbxUtility")
  50. local Create = RbxUtility.Create
  51. local m = Create("Model"){
  52. Parent = Character,
  53. Name = "WeaponModel",
  54. }
  55.  
  56. function nooutline(part)
  57. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  58. end
  59.  
  60. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  61. local fp=it("Part")
  62. fp.formFactor=formfactor
  63. fp.Parent=parent
  64. fp.Reflectance=reflectance
  65. fp.Transparency=transparency
  66. fp.CanCollide=false
  67. fp.Locked=true
  68. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  69. fp.Name=name
  70. fp.Size=size
  71. fp.Position=Character.Torso.Position
  72. nooutline(fp)
  73. fp.Material=material
  74. fp:BreakJoints()
  75. return fp
  76. end
  77.  
  78. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  79. local mesh=it(Mesh)
  80. mesh.Parent=part
  81. if Mesh=="SpecialMesh" then
  82. mesh.MeshType=meshtype
  83. mesh.MeshId=meshid
  84. end
  85. mesh.Offset=offset
  86. mesh.Scale=scale
  87. return mesh
  88. end
  89.  
  90. function weld(parent,part0,part1,c0,c1)
  91. local weld=it("Weld")
  92. weld.Parent=parent
  93. weld.Part0=part0
  94. weld.Part1=part1
  95. weld.C0=c0
  96. weld.C1=c1
  97. return weld
  98. end
  99.  
  100. local modeloe=Instance.new("Model")
  101. modeloe.Parent=Character
  102. modeloe.Name="Shotgun"
  103.  
  104. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,("Black"),"Part",Vector3.new(1, 1, -10)) -- forward, up, left, rotation?, angle up,
  105. Partweld=weld(m,Part2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3,0,-0,-1,-1,-1,0,10,0,0,0,1))
  106. shotgun=mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=2166741820",Vector3.new(0,0,0),Vector3.new(2.01, 2.01,2.01))
  107.  
  108. Part2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,("Dark blue"),"Part",Vector3.new(1, 0, -2)) -- forward, up, left, rotation?, angle up,
  109. firePiece=weld(m,Character["Torso"],Part2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1,0,-0,-1,-0,-1,0,1,0,0,0,1))
  110. --------------------------------
  111. local Weld = Instance.new("Weld")
  112. Weld.Part0 = Torso
  113. Weld.Part1 = Part
  114. Weld.Parent = Torso
  115.  
  116. local Part0Joint = CFrame.new(Vector3.new(1,8.75,0)*1.25)
  117. local Part1Joint = CFrame.new(Vector3.new(-0.5,0.75,0)*1.25)
  118. local RotationOffset = CFrame.Angles(math.rad(360),math.rad(0),0)
  119. local Gangster = false
  120.  
  121. local Part0JointHead = CFrame.new(Vector3.new(0,1,0)*1.25)
  122. local Part1JointHead = CFrame.new(Vector3.new(0,-0.5,0)*1.25)
  123. local RotationOffsetHead = CFrame.Angles(0,0,0)
  124.  
  125. game:GetService("RunService"):BindToRenderStep("Shotgun",Enum.RenderPriority.Character.Value,function()
  126. local Point = Torso.CFrame:vectorToObjectSpace(mouse.Hit.p-Torso.CFrame.p)
  127. if Point.Z > 0 then
  128. if Point.X > 0 then
  129. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(90),0)
  130. elseif Point.X < 0 then
  131. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(-90),0)
  132. end
  133. end
  134.  
  135. local CFr = (Torso.CFrame*Part0Joint):toObjectSpace(CFrame.new((Torso.CFrame*Part0Joint).p,mouse.Hit.p))--RayEnd))
  136. Weld.C0 = Part0Joint * (CFr-CFr.p) * RotationOffset
  137. Weld.C1 = Part1Joint
  138. Weld.Part0 = Torso
  139. Weld.Part1 = Part
  140. end)
  141. -------------------------------------
  142.  
  143. ----------------------------------
  144. -----------------------------------
  145. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  146. for i, v in pairs(hit:GetChildren()) do
  147. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  148. local find = v:FindFirstChild("Hitz")
  149. if not find then
  150. if v.Parent:findFirstChild("Head") then
  151. local BillG = Create("BillboardGui"){
  152. Parent = v.Parent.Head,
  153. Size = UDim2.new(1, 0, 1, 0),
  154. Adornee = v.Parent.Head,
  155. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  156. }
  157. local TL = Create("TextLabel"){
  158. Parent = BillG,
  159. Size = UDim2.new(3, 3, 3, 3),
  160. BackgroundTransparency = 1,
  161. Text = tostring(damage).."-",
  162. TextColor3 = Color1.Color,
  163. TextStrokeColor3 = Color2.Color,
  164. TextStrokeTransparency = 0,
  165. TextXAlignment = Enum.TextXAlignment.Center,
  166. TextYAlignment = Enum.TextYAlignment.Center,
  167. FontSize = Enum.FontSize.Size18,
  168. Font = "ArialBold",
  169. }
  170. coroutine.resume(coroutine.create(function()
  171. wait(1)
  172. for i = 0, 1, .1 do
  173. wait(.1)
  174. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  175. end
  176. BillG:Destroy()
  177. end))
  178. end
  179. v.Health = v.Health - damage
  180. local bool = Create("BoolValue"){
  181. Parent = v,
  182. Name = 'Hitz',
  183. }
  184. if HSound ~= nil and HPitch ~= nil then
  185. CreateSound(HSound, hit, 1, HPitch)
  186. end
  187. game:GetService("Debris"):AddItem(bool, cooldown)
  188. end
  189. end
  190. end
  191. end
  192.  
  193. function rayCast(Pos, Dir, Max, Ignore)
  194. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  195. end
  196.  
  197. Effects = { }
  198. function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HitSound)
  199. for _, c in pairs(workspace:children()) do
  200. local hum = c:findFirstChild("Humanoid")
  201. if hum ~= nil then
  202. local head = c:findFirstChild("Torso")
  203. if head ~= nil then
  204. local targ = head.Position - Part.Position
  205. local mag = targ.magnitude
  206. if mag <= magni and c.Name ~= Player.Name then
  207. Damage(head.Parent, math.random(mindam, maxdam), 0, Color1, Color2, HitSound, 1)
  208. end
  209. end
  210. end
  211. end
  212. end
  213.  
  214. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  215. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt())
  216. prt.Anchored=true
  217. prt.CFrame=cframe
  218. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  219. game:GetService("Debris"):AddItem(prt,5)
  220. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  221. end
  222.  
  223.  
  224.  
  225. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  226. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  227. prt.Anchored=true
  228. prt.CFrame=cframe
  229. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  230. game:GetService("Debris"):AddItem(prt,2)
  231. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  232. for i=0,1,delay do
  233. swait()
  234. Part.Transparency=i
  235. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  236. end
  237. Part.Parent=nil
  238. end),prt,msh,(math.random(0,1)+math.random())/5)
  239. end
  240. function MagicShotgun(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  241. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  242. prt.Anchored=true
  243. prt.CFrame=cframe
  244. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=2166741820",vt(0,0,0),vt(x1,y1,z1))
  245. game:GetService("Debris"):AddItem(prt,2)
  246. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  247. for i=0,1,delay do
  248. swait()
  249. Part.Transparency=i
  250. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  251. end
  252. Part.Parent=nil
  253. end),prt,msh,(math.random(0,1)+math.random())/5)
  254. end
  255. --2166741820
  256. function MagicBlockx(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  257. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt())
  258. prt.Anchored=true
  259. prt.CFrame=cframe
  260. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  261. game:GetService("Debris"):AddItem(prt,5)
  262. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  263. end
  264.  
  265. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  266. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  267. prt.Anchored=true
  268. prt.CFrame=cframe
  269. prt.CanCollide = false
  270. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  271. game:GetService("Debris"):AddItem(prt,2)
  272. coroutine.resume(coroutine.create(function(Part,Mesh)
  273. for i=0,1,delay do
  274. swait()
  275. Part.CFrame=Part.CFrame
  276. Part.Transparency=i
  277. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  278. end
  279. Part.Parent=nil
  280. end),prt,msh)
  281. end
  282. --------------------------------
  283. ----------------------------
  284.  
  285. function Spreadgun()
  286. attack = true
  287. for i = 1,5 do
  288. LaserBarrage(shotgun.Parent) --(CFrame.new(0,-5,-5.5,-10,-0,-1,0,1,0,0,0,1))
  289. end
  290. CreateSound("rbxassetid://3074576931", shotgun.Parent, 3, 0.8)
  291. wait(1.5)
  292. attack = false
  293. end
  294.  
  295. function Spreadgun2()
  296. attack = true
  297. for i = 1,5 do
  298. LaserBarrage2(shotgun.Parent) --(CFrame.new(0,-5,-5.5,-10,-0,-1,0,1,0,0,0,1))
  299. end
  300. CreateSound("rbxassetid://3074576931", shotgun.Parent, 3, 0.7)
  301. wait(1.8)
  302. attack = false
  303. end
  304.  
  305. function lazershell()
  306. attack = true
  307. --omsh.Scale=omsh.Scale+vt(0.5,0.5,0.5)
  308. local Pos=cf(shotgun.Parent.Position,Player:GetMouse().Hit.p).lookVector
  309. wait(.5)
  310. local hit,pos = rayCast(shotgun.Parent.Position,Pos,999,Character)
  311. local mag=(shotgun.Parent.Position-pos).magnitude
  312. MagicCircle(BrickColor.new("Neon orange"),cf(pos),15,15,15,8,8,8,0.02)
  313. MagicBlock(BrickColor.new("White"),cf(pos),15,15,15,8,8,8,0.02)
  314. MagicCylinder(BrickColor.new("White"),CFrame.new((shotgun.Parent.Position+pos)/2,pos)*euler(1.57,0,0),10,mag*5,10,0.5,0,0.5,0.01)
  315. for i=1,2 do
  316. MagicRing(BrickColor.new("Neon orange"),cf(pos)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),3,3,3,1,1,1,0.04)
  317. end
  318. for i=1,5 do
  319. local tehcf=CFrame.new((shotgun.Parent.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0)
  320. MagicRing(BrickColor.new("Really black"),tehcf*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.01)
  321. end
  322. for i=0,5 do
  323. local tehcf=CFrame.new((shotgun.Parent.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(-mag/5)*(i/2),0)
  324. MagicRing(BrickColor.new("Neon orange"),tehcf*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.01)
  325. end
  326. local ref=part(3,workspace,"Neon",0,1,BrickColor.new("Really black"),"Effect",vt())
  327. ref.CFrame=cf(pos)
  328. so("http://roblox.com/asset/?id=203691378",Torso,3,0.6)
  329. so("http://roblox.com/asset/?id=169445602",Torso,3,0.6)
  330. so("http://www.roblox.com/Asset?ID=203691282",Torso,3,.7)
  331. coroutine.resume(coroutine.create(function(Part)
  332. Part.Parent=nil
  333. end),ref)
  334. if hit~=nil then
  335. MagnitudeDamage(ref, 40, 100, 200, BrickColor.new("Dark stone grey"), BrickColor.new("Navy blue") , "rbxassetid://199149297")
  336. attack = false
  337. end
  338. end
  339.  
  340. mouse.KeyDown:connect(function(k)
  341. k = k:lower()
  342. if k == "e" and attack==false and overload==false then
  343. Spreadgun()
  344. end
  345. if k == "q" and attack==false and overload==true then
  346. lazershell()
  347. end
  348. if k == "f" and attack==false and overload==false then
  349. Overload()
  350. end
  351. if k == "g" and attack==false and overload==true then
  352. Normal()
  353. end
  354. if k == "z" and attack==false and overload==true then
  355. Spreadgun2()
  356. end
  357. if k == "LeftShift" and attack==false then
  358. Humanoid.WalkSpeed=(32)
  359. end
  360. end)
  361.  
  362. function swait(num)
  363. if num==0 or num==nil then
  364. game:service'RunService'.Heartbeat:wait(0)
  365. else
  366. for i=0,num do
  367. game:service'RunService'.Heartbeat:wait(0)
  368. end
  369. end
  370. end
  371.  
  372. function CreateSound(id, par, vol, pit)
  373. coroutine.resume(coroutine.create(function()
  374. local sou = Create("Sound"){
  375. Parent = par or workspace,
  376. Volume = vol,
  377. Pitch = pit or 1,
  378. SoundId = id,
  379. }
  380. wait()
  381. sou:play()
  382. end))
  383. end
  384. --[[
  385. function mosic()
  386. CreateSound("rbxassetid://1607713083", shotgun.Parent, 5, 1)
  387. end
  388. mosic()
  389. ]]--
  390.  
  391. function LaserBarrage(Prt,Parent)
  392. --attack=true
  393. local efprt=part(3,Parent,"Neon",0,0.5,BrickColor.new("Bright green"),"Effect",vt(0.2,0.2,0.2))
  394. efprt.Anchored=true
  395. local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
  396. local spread=vt((math.random(-1,0)+math.random())*7,(math.random(-1,0)+math.random())*7,(math.random(-1,0)+math.random())*7)*(Prt.Position-mouse.Hit.p).magnitude/40
  397. coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded)
  398. game:GetService("Debris"):AddItem(Part,6)
  399. local TheHit=mouse.Hit.p
  400. local MouseLook=cf((Prt.Position+TheHit)/2,TheHit+Spreaded/16)
  401. local hit,pos = rayCast(Prt.Position,MouseLook.lookVector,1000,Parent)
  402. --local pos=rayCast(P.Parent.Position,Player:GetMouse().Hit.p).lookVector
  403. local tefprt=part(3,workspace,"Neon",0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  404. tefprt.CFrame=cf(pos)
  405. MagicCircle(BrickColor.new("Neon orange"),cf(pos),0.5,0.5,0.5,0.5,0.5,0.5,0.04)
  406. game:GetService("Debris"):AddItem(tefprt,3)
  407. Part.CFrame=CFrame.new((Prt.Position+pos)/2,pos)*angles(1.57,0,0)
  408. if(hit.Parent:FindFirstChild("Humanoid")~= nil)then
  409. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  410. hit.Parent.Humanoid:TakeDamage(1000)
  411. hit:Destroy()
  412. end
  413. end
  414. local mag=(Prt.Position-pos).magnitude
  415. --MagicCylinder(BrickColor.new("Dark blue"),CFrame.new((shotgun.Parent.Position+pos)/2,pos)*euler(1.57,0,0),10,mag*5,10,0.5,0,0.5,0.01)
  416. --MagicCircle(BrickColor.new("Neon orange"),cf(pos),0.5,0.5,0.5,0.5,0.5,0.5,0.04)
  417. MagicCylinder(BrickColor.new("White"),Part.CFrame,1,mag*5,0.5,0.05,0,0.5,0.05)
  418. Part.Parent=nil
  419. end),efprt,efmsh,spread)
  420. end
  421.  
  422. function Machinegun(Prt,Parent)
  423. --attack=true
  424. local efprt=part(3,Parent,"Neon",0,0.5,BrickColor.new("Bright green"),"Effect",vt(0.2,0.2,0.2))
  425. efprt.Anchored=true
  426. local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
  427. local spread=vt((math.random(-1,0)+math.random())*7,(math.random(-1,0)+math.random())*7,(math.random(-1,0)+math.random())*7)*(Prt.Position-mouse.Hit.p).magnitude/40
  428. coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded)
  429. game:GetService("Debris"):AddItem(Part,6)
  430. local TheHit=mouse.Hit.p
  431. local MouseLook=cf((Prt.Position+TheHit)/2,TheHit+Spreaded/17)
  432. local hit,pos = rayCast(Prt.Position,MouseLook.lookVector,1000,Parent)
  433. --local pos=rayCast(P.Parent.Position,Player:GetMouse().Hit.p).lookVector
  434. local tefprt=part(3,workspace,"Neon",0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  435. tefprt.CFrame=cf(pos)
  436. MagicCircle(BrickColor.new("Neon orange"),cf(pos),0.5,0.5,0.5,0.5,0.5,0.5,0.02)
  437. game:GetService("Debris"):AddItem(tefprt,3)
  438. Part.CFrame=CFrame.new((Prt.Position+pos)/2,pos)*angles(1.57,0,0)
  439. if(hit.Parent:FindFirstChild("Humanoid")~= nil)then
  440. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  441. hit.Parent.Humanoid:TakeDamage(1000)
  442. hit.Parent:Destroy()
  443. end
  444. end
  445. end),efprt,efmsh,spread)
  446. end
  447.  
  448. function LaserBarrage2(Prt,Parent)
  449. --attack=true
  450. local efprt=part(3,Parent,"Neon",0,0.5,BrickColor.new("Bright green"),"Effect",vt(0.2,0.2,0.2))
  451. --efprt.Anchored=true
  452. local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
  453. local spread=vt((math.random(-1,0)+math.random())*7,(math.random(-1,0)+math.random())*7,(math.random(-1,0)+math.random())*7)*(Prt.Position-mouse.Hit.p).magnitude/40
  454. coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded)
  455. game:GetService("Debris"):AddItem(Part,6)
  456. local TheHit=mouse.Hit.p
  457. local MouseLook=cf((Prt.Position+TheHit)/2,TheHit+Spreaded/16)
  458. local hit,pos = rayCast(Prt.Position,MouseLook.lookVector,1000,Parent)
  459. --local pos=rayCast(P.Parent.Position,Player:GetMouse().Hit.p).lookVector
  460. local tefprt=part(3,workspace,"Neon",0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  461. tefprt.CFrame=cf(pos)
  462. MagicCircle(BrickColor.new("Neon orange"),cf(pos),10.5,10.5,10.5,0.5,0.5,0.5,0.01)
  463. game:GetService("Debris"):AddItem(tefprt,3)
  464. Part.CFrame=CFrame.new((Prt.Position+pos)/2,pos)*angles(1.57,0,0)
  465. if(hit.Parent:FindFirstChild("Humanoid")~= nil)then
  466. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  467. hit.Parent.Humanoid:TakeDamage(1000)
  468. hit.Parent:Destroy()
  469. hit.Parent.Humanoid.Script:Destroy()
  470. end
  471. end
  472. local mag=(Prt.Position-pos).magnitude
  473. --MagicCylinder(BrickColor.new("Dark blue"),CFrame.new((shotgun.Parent.Position+pos)/2,pos)*euler(1.57,0,0),10,mag*5,10,0.5,0,0.5,0.01)
  474. --MagicCircle(BrickColor.new("Neon orange"),cf(pos),0.5,0.5,0.5,0.5,0.5,0.5,0.04)
  475. MagicCylinder(BrickColor.new("White"),Part.CFrame,1,mag*5,2.5,0.05,0,0.5,0.01)
  476. Part.Parent=nil
  477. end),efprt,efmsh,spread)
  478. end
  479.  
  480. so = function(id,par,vol,pit)
  481. coroutine.resume(coroutine.create(function()
  482. local sou = Instance.new("Sound",par or workspace)
  483. sou.Volume=vol
  484. sou.Pitch=pit or 1
  485. sou.SoundId=id
  486. swait()
  487. sou:play()
  488. game:GetService("Debris"):AddItem(sou,6)
  489. end))
  490. end
  491.  
  492.  
  493. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  494. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  495. prt.Anchored=true
  496. prt.CFrame=cframe
  497. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  498. game:GetService("Debris"):AddItem(prt,2)
  499. coroutine.resume(coroutine.create(function(Part,Mesh)
  500. for i=0,1,delay do
  501. swait()
  502. Part.CFrame=Part.CFrame
  503. Part.Transparency=i
  504. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  505. end
  506. Part.Parent=nil
  507. end),prt,msh)
  508. end
  509.  
  510. function Overload()
  511. overload=true
  512. shotgun.Parent:Destroy()
  513. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,("Black"),"Part",Vector3.new(1, 1, -10)) -- forward, up, left, rotation?, angle up,
  514. Partweld=weld(m,Part2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3,0,-0,-1,-1,-1,0,10,0,0,0,1))
  515. shotgun=mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=2166741820",Vector3.new(0,0,0),Vector3.new(7.01, 7.01,7.01),CFrame.Angles(math.rad(360),math.rad(0),0))
  516. CreateSound("rbxassetid://142653441", shotgun.Parent, 5, 1)
  517. --[[
  518. local Pos=cf(shotgun.Parent.Position,Player:GetMouse().Hit.p).lookVector
  519. local hit,pos = rayCast(shotgun.Parent.Position,Pos,30,shotgun.Parent)
  520. local mag=(shotgun.Parent.Position-pos).magnitude
  521. for i=1,5 do
  522. local tehcf=CFrame.new((shotgun.Parent.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0)
  523. MagicRing(BrickColor.new("Really black"),tehcf*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.01)
  524. local hit2,pos2 = rayCast(shotgun.Parent.Position,Pos,-30,shotgun.Parent)
  525. local tehcf2=CFrame.new((shotgun.Parent.Position+pos2)/2,pos2)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0)
  526. MagicRing(BrickColor.new("Really black"),tehcf2*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.01)
  527. end
  528. ]]--
  529. for i=1,1 do
  530. local Pos=cf(shotgun.Parent.Position,Player:GetMouse().Hit.p).lookVector
  531. local hit,pos = rayCast(shotgun.Parent.Position,Pos,30,shotgun.Parent)
  532. local mag=(shotgun.Parent.Position-pos).magnitude
  533. local tehcf=CFrame.new((shotgun.Parent.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0)
  534. MagicShotgun(BrickColor.new("Really black"),tehcf*euler(0.01,0,0),1,1,1,0.5,0.5,0.5,0.01)
  535. end
  536. local particleemitter = Instance.new("ParticleEmitter", shotgun.Parent)
  537. particleemitter.Texture = "http://www.roblox.com/asset/?id=321556991"
  538. particleemitter.ZOffset = Vector3.new(1,1,10)
  539. particleemitter.EmissionDirection = "Front"
  540. particleemitter.VelocitySpread = 10
  541. particleemitter.LockedToPart = true
  542. particleemitter.Lifetime = NumberRange.new(0.65)
  543. particleemitter.Speed = NumberRange.new(40)
  544. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)})
  545. particleemitter.RotSpeed = NumberRange.new(-180, 180)
  546. particleemitter.Rate = 180
  547. particleemitter.Rotation = NumberRange.new(-45, 45)
  548. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  549. particleemitter.LightEmission = 0
  550. particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  551. end
  552.  
  553. function Normal()
  554. overload=false
  555. shotgun.Parent:Destroy()
  556. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,("Black"),"Part",Vector3.new(1, 1, -10)) -- forward, up, left, rotation?, angle up,
  557. Partweld=weld(m,Part2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3,0,-0,-1,-1,-1,0,10,0,0,0,1))
  558. shotgun=mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=2166741820",Vector3.new(0,0,0),Vector3.new(2.01, 2.01,2.01))
  559. --CreateSound("rbxassetid://1607713083", shotgun.Parent, 5, 1)
  560. end
  561.  
  562. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  563. local xs, ys, zs = x + x, y + y, z + z
  564. local wx, wy, wz = w*xs, w*ys, w*zs
  565. local xx = x*xs
  566. local xy = x*ys
  567. local xz = x*zs
  568. local yy = y*ys
  569. local yz = y*zs
  570. local zz = z*zs
  571. 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))
  572. end
  573.  
  574. function QuaternionFromCFrame(cf)
  575. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  576. local trace = m00 + m11 + m22
  577. if trace > 0 then
  578. local s = math.sqrt(1 + trace)
  579. local recip = 0.5/s
  580. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  581. else
  582. local i = 0
  583. if m11 > m00 then
  584. i = 1
  585. end
  586. if m22 > (i == 0 and m00 or m11) then
  587. i = 2
  588. end
  589. if i == 0 then
  590. local s = math.sqrt(m00-m11-m22+1)
  591. local recip = 0.5/s
  592. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  593. elseif i == 1 then
  594. local s = math.sqrt(m11-m22-m00+1)
  595. local recip = 0.5/s
  596. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  597. elseif i == 2 then
  598. local s = math.sqrt(m22-m00-m11+1)
  599. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  600. end
  601. end
  602. end
  603.  
  604. function QuaternionSlerp(a, b, t)
  605. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  606. local startInterp, finishInterp;
  607. if cosTheta >= 0.0001 then
  608. if (1 - cosTheta) > 0.0001 then
  609. local theta = math.acos(cosTheta)
  610. local invSinTheta = 1/math.sin(theta)
  611. startInterp = math.sin((1-t)*theta)*invSinTheta
  612. finishInterp = math.sin(t*theta)*invSinTheta
  613. else
  614. startInterp = 1-t
  615. finishInterp = t
  616. end
  617. else
  618. if (1+cosTheta) > 0.0001 then
  619. local theta = math.acos(-cosTheta)
  620. local invSinTheta = 1/math.sin(theta)
  621. startInterp = math.sin((t-1)*theta)*invSinTheta
  622. finishInterp = math.sin(t*theta)*invSinTheta
  623. else
  624. startInterp = t-1
  625. finishInterp = t
  626. end
  627. end
  628. 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
  629. end
  630.  
  631. function clerp(a,b,t)
  632. local qa = {QuaternionFromCFrame(a)}
  633. local qb = {QuaternionFromCFrame(b)}
  634. local ax, ay, az = a.x, a.y, a.z
  635. local bx, by, bz = b.x, b.y, b.z
  636. local _t = 1-t
  637. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  638. end
  639. RW=Torso["Right Shoulder"]
  640. LW=Torso["Left Shoulder"]
  641. --RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  642.  
  643. RW.Name="Right Shoulder"
  644. RW.Part0=Character.Torso
  645. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  646. RW.C1=cf(0, 0.5, 0)
  647. RW.Part1=Character["Right Arm"]
  648. RW.Parent=Character.Torso
  649. --
  650. LW.Name="Left Shoulder"
  651. LW.Part0=Character.Torso
  652. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  653. LW.C1=cf(0, 0.5, 0)
  654. LW.Part1=Character["Left Arm"]
  655. LW.Parent=Character.Torso
  656.  
  657. anim = Character.Humanoid:findFirstChild("Animate")
  658. if anim then
  659. anim:Destroy()
  660. end
  661.  
  662. local sine = 0
  663. local change = 1
  664. local val = 0
  665.  
  666. local mananum=0
  667. while true do
  668. swait()
  669. sine = sine + change
  670. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  671. local velderp=RootPart.Velocity.y
  672. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  673. if equipped==true or equipped==false then
  674. if Anim=="Idle" and attack==false then
  675. idle=idle+1
  676. else
  677. idle=0
  678. end
  679. if Humanoid.Health <=20 then
  680. if attack == false then
  681. Humanoid.Health = 500
  682. end
  683. end
  684. if RootPart.Velocity.y > 1 and hitfloor==nil then
  685. Anim="Jump"
  686. if attack==false then
  687. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  688. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  689. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0),.3)
  690. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.25,0,0.5),.3)
  691. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  692. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.25,0,-0.5),.3)
  693. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  694. RH.C0=clerp(RH.C0,cf(1,0,-.75)*euler(-0.5,1.57,0)*euler(0,0,0),.2)
  695. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(0,0,0),.2)
  696. end
  697. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  698. Anim="Fall"
  699. if attack==false then
  700. Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3)
  701. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  702. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  703. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3)
  704. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  705. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3)
  706. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  707. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2)
  708. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2)
  709. end
  710. elseif torvel<1 and hitfloor~=nil then
  711. Anim="Idle"
  712. change=0.5
  713. if idle>=100 then
  714. if attack==false then
  715. Humanoid.WalkSpeed=12
  716. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,6-0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(0),math.rad(10)),.1)
  717. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(5+2*math.cos(sine/5.5)),math.rad(-5-2*math.cos(sine/5.5)),math.rad(-50)),.1)
  718. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1)
  719. RW.C0=clerp(RW.C0,cf(0.8,0.3,-0.5)*angles(math.rad(70),math.rad(0),math.rad(-85)),.5)
  720. LW.C0=clerp(LW.C0,cf(-0.6,0.5,-0.7)*angles(math.rad(70),math.rad(0),math.rad(85)),.5)
  721. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  722. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  723. end
  724. else
  725. if attack==false then
  726. Humanoid.WalkSpeed=12
  727. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(6),math.rad(0),math.rad(0)),.3)
  728. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(3+3*math.cos(sine/36)),math.rad(0),math.rad(0)),.3)
  729. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  730. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(16-6*math.cos(sine/28))),.3)
  731. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16+6*math.cos(sine/28))),.3)
  732. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(16)),.3)
  733. LH.C0=clerp(LH.C0,cf(-1,-1.1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(24)),.3)
  734. end
  735. end
  736. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  737. Anim="Walk"
  738. if attack==false then
  739. change=0.8
  740. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(10+1*math.cos(sine/2.5)),math.rad(0),math.rad(1-5*math.cos(sine/5))),.3)
  741. Neck.C0=clerp(Neck.C0,necko*euler(0+0.075*math.cos(sine/2.5),0,0)*angles(math.rad(0),math.rad(0),math.rad(1+5*math.cos(sine/5))),.3)
  742. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  743. RW.C0=clerp(RW.C0,cf(1.4+0.25*math.cos(sine/5),0.5+0.25*math.cos(sine/5),-0.2+0.5*math.cos(sine/5))*angles(math.rad(20-60*math.cos(sine/5)),math.rad(0),math.rad(-4+30*math.cos(sine/5))),.3)
  744. LW.C0=clerp(LW.C0,cf(-1.4+0.25*math.cos(sine/5),0.5-0.25*math.cos(sine/5),-0.2-0.5*math.cos(sine/5))*angles(math.rad(20+60*math.cos(sine/5)),math.rad(0),math.rad(4+30*math.cos(sine/5))),.3)
  745. RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3)
  746. LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3)
  747. end
  748. elseif torvel>=22 and hitfloor~=nil then
  749. Anim="Run"
  750. change=1
  751. if attack==false then
  752. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(20+1*math.cos(sine/2.5)),math.rad(0),math.rad(0)),.3)
  753. Neck.C0=clerp(Neck.C0,necko*euler(-0.2+0.075*math.cos(sine/2.5),0,0),.3)
  754. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  755. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(24)),.3)
  756. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(-24)),.3)
  757. RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3)
  758. LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3)
  759. end
  760. end
  761. end
  762. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement