Advertisement
vibrantsinger423

shotewrf

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