XxmadmaxgamexX

Dubstep Gun

Feb 25th, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.25 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. do --CFrame lerp (stravant, clerp by AntiBoomz0r)
  87. local function QuaternionFromCFrame(cf)
  88. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  89. local trace = m00 + m11 + m22
  90. if trace > 0 then
  91. local s = math.sqrt(1 + trace)
  92. local recip = 0.5/s
  93. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  94. else
  95. local i = 0
  96. if m11 > m00 then
  97. i = 1
  98. end
  99. if m22 > (i == 0 and m00 or m11) then
  100. i = 2
  101. end
  102. if i == 0 then
  103. local s = math.sqrt(m00-m11-m22+1)
  104. local recip = 0.5/s
  105. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  106. elseif i == 1 then
  107. local s = math.sqrt(m11-m22-m00+1)
  108. local recip = 0.5/s
  109. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  110. elseif i == 2 then
  111. local s = math.sqrt(m22-m00-m11+1)
  112. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  113. end
  114. end
  115. end
  116. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  117. local xs, ys, zs = x + x, y + y, z + z
  118. local wx, wy, wz = w*xs, w*ys, w*zs
  119. local xx = x*xs
  120. local xy = x*ys
  121. local xz = x*zs
  122. local yy = y*ys
  123. local yz = y*zs
  124. local zz = z*zs
  125. 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))
  126. end
  127. function QuaternionSlerp(a, b, t)
  128. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  129. local startInterp, finishInterp;
  130. if cosTheta >= 0.0001 then
  131. if (1 - cosTheta) > 0.0001 then
  132. local theta = math.acos(cosTheta)
  133. local invSinTheta = 1/math.sin(theta)
  134. startInterp = math.sin((1-t)*theta)*invSinTheta
  135. finishInterp = math.sin(t*theta)*invSinTheta
  136. else
  137. startInterp = 1-t
  138. finishInterp = t
  139. end
  140. else
  141. if (1+cosTheta) > 0.0001 then
  142. local theta = math.acos(-cosTheta)
  143. local invSinTheta = 1/math.sin(theta)
  144. startInterp = math.sin((t-1)*theta)*invSinTheta
  145. finishInterp = math.sin(t*theta)*invSinTheta
  146. else
  147. startInterp = t-1
  148. finishInterp = t
  149. end
  150. end
  151. 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
  152. end
  153. function clerp(a,b,t)
  154. local qa = {QuaternionFromCFrame(a)}
  155. local qb = {QuaternionFromCFrame(b)}
  156. local ax, ay, az = a.x, a.y, a.z
  157. local bx, by, bz = b.x, b.y, b.z
  158. local _t = 1-t
  159. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  160. end
  161. end
  162.  
  163. plr = owner
  164. char = plr.Character
  165. humanoid = char:findFirstChild("Humanoid")
  166. torso = char:findFirstChild("Torso")
  167. head = char.Head
  168. ra = char:findFirstChild("Right Arm")
  169. la = char:findFirstChild("Left Arm")
  170. rl = char:findFirstChild("Right Leg")
  171. ll = char:findFirstChild("Left Leg")
  172. rs = torso:findFirstChild("Right Shoulder")
  173. ls = torso:findFirstChild("Left Shoulder")
  174. rh = torso:findFirstChild("Right Hip")
  175. lh = torso:findFirstChild("Left Hip")
  176. neck = torso:findFirstChild("Neck")
  177. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  178. anim = char:findFirstChild("Animate")
  179. if anim then
  180. anim:Destroy()
  181. end
  182. rootpart = char:findFirstChild("HumanoidRootPart")
  183. camera = workspace.CurrentCamera
  184. modelforparts = char:findFirstChild("ModelForParts") or Instance.new("Model", char)
  185. modelforparts.Name = "ModelForParts"
  186.  
  187. function trailconnect(obj, wat)
  188. local trail = {}
  189. for i = 1, 4 do
  190. local p = Instance.new("Part")
  191. p.Material = "SmoothPlastic"
  192. p.BrickColor = obj.BrickColor
  193. p.formFactor = "Custom"
  194. p.Size = Vector3.new(1,1,1)
  195. p.Locked = true
  196. p.Anchored = true
  197. p.CanCollide = false
  198. local mesh = Instance.new("CylinderMesh", p)
  199. mesh.Name = "Mesh"
  200. table.insert(trail,{p,0})
  201. end
  202. local lastpos = obj.Position
  203. local updatethis = 0
  204. local dontdothis = false
  205. if wat == true then if dontdothis then return end
  206. for i,v in pairs(trail) do
  207. game:service'Debris':AddItem(obj, 0)
  208. table.remove(v, i)
  209. end
  210. dontdothis = true
  211. return
  212. end
  213. updatethis = ((updatethis) % 4) + 1
  214. local dstnc = (obj.Position - lastpos).magnitude
  215. trail[updatethis][1].Mesh.Scale = Vector3.new(.2,dstnc,.2)
  216. trail[updatethis][1].Parent = obj.Parent
  217. trail[updatethis][1].CFrame = CFrame.new((obj.Position + lastpos)/2,obj.Position) * CFrame.Angles(math.pi/2, 0, 0)
  218. trail[updatethis][2] = 0
  219. for i,v in pairs(trail) do
  220. v[2] = v[2] + .15
  221. v[1].Transparency = v[2]
  222. end
  223. lastpos = obj.Position
  224. end
  225. end
  226.  
  227. do --rayCast
  228. function rayCast(startpos, Speed, Gravity, Dmg, color)
  229. local ran,err = ypcall(function()
  230. local rayPart = Instance.new("Part")
  231. rayPart.Material = "SmoothPlastic"
  232. rayPart.Name = "RayPart"
  233. rayPart.BrickColor = BrickColor.new(color)
  234. rayPart.Anchored = true
  235. rayPart.CanCollide = false
  236. rayPart.Locked = true
  237. rayPart.FormFactor = "Custom"
  238. rayPart.TopSurface = Enum.SurfaceType.Smooth
  239. rayPart.BottomSurface = Enum.SurfaceType.Smooth
  240. rayPart.Size = Vector3.new(.2, 50, .2)
  241. rayPart:breakJoints()
  242. Instance.new("CylinderMesh", rayPart)
  243. local fire = Instance.new("Fire", rayPart)
  244. fire.Color = rayPart.BrickColor.Color
  245. fire.SecondaryColor = rayPart.BrickColor.Color
  246. fire.Heat = 0
  247. fire.Size = 10
  248. local pl = Instance.new("PointLight", rayPart)
  249. pl.Color = Color3.new(rayPart.BrickColor.r/1.5, rayPart.BrickColor.g/1.5, rayPart.BrickColor.b/1.5)
  250. pl.Range = 18
  251.  
  252. local hitobj = false
  253. local bulletposition = startpos.Position
  254. rayPart.CFrame = startpos.CFrame
  255. trailconnect(rayPart, hitobj)
  256.  
  257. local bulletvelocity = (Vector3.new(math.random(-2,2), math.random(-2,2), math.random(-2,2)))+( mouse.Hit.p - bulletposition).unit*Speed
  258. local bulletlastposition = bulletposition
  259.  
  260. coroutine.resume(coroutine.create(function()
  261. while true do
  262.  
  263. local dt = wait()
  264. bulletlastposition = bulletposition
  265. bulletvelocity = bulletvelocity + (Vector3.new(0, -3.81*Gravity, 0)*dt)
  266. bulletposition = bulletposition + (bulletvelocity*dt)
  267. local ray = Ray.new(bulletlastposition, (bulletposition - bulletlastposition))
  268. local hit, hitposition = workspace:FindPartOnRayWithIgnoreList( ray, {char, modelforparts} )
  269.  
  270. if (torso.Position - rayPart.Position).magnitude > 840 then
  271. rayPart:Destroy()
  272. hitobj = true
  273. break
  274. end
  275.  
  276.  
  277. if hit then
  278. hitobj = true
  279. local damage = math.random(Dmg, Dmg+6)
  280. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  281. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - damage
  282. elseif hit.Parent:IsA("Hat") and hit.Parent.Parent:findFirstChild("Humanoid") then
  283. hit.Parent.Parent.Humanoid.Health = hit.Parent.Parent.Humanoid.Health - damage
  284. end
  285. local boom = Instance.new("Part", modelforparts)
  286. boom.Material = "SmoothPlastic"
  287. boom.BrickColor = rayPart.BrickColor
  288. boom.Anchored = true
  289. boom.FormFactor = "Custom"
  290. boom.Size = Vector3.new(1,1,1)
  291. boom.CanCollide = false
  292. boom.Transparency = 0.25
  293. boom.CFrame = CFrame.new(hitposition.x, hitposition.y, hitposition.z)
  294. boom.TopSurface = 0
  295. boom.BottomSurface = 0
  296. local sphere = Instance.new("SpecialMesh", boom)
  297. sphere.MeshType = "Sphere"
  298. local pl = Instance.new("PointLight", boom)
  299. pl.Color = Color3.new(boom.BrickColor.r/1.5, boom.BrickColor.g/1.5, boom.BrickColor.b/1.5)
  300. pl.Range = 20
  301. for ye = 0, 8 do
  302. local lite = Instance.new("Part", boom)
  303. lite.Material = "SmoothPlastic"
  304. lite.FormFactor = "Custom"
  305. lite.Size = Vector3.new(.2, 1.5, .2)
  306. lite.BrickColor = boom.BrickColor
  307. lite.CanCollide = false
  308. lite.TopSurface = 0
  309. lite.Anchored = false
  310. lite.BottomSurface = 0
  311. lite.Position = boom.Position + Vector3.new(math.random(-10, 10), math.random(6,15), math.random(-10, 10))
  312. end
  313.  
  314. for i = 0, 20, 2.5 do
  315. sphere.Scale = sphere.Scale + Vector3.new(i,i,i)
  316. boom.Transparency = boom.Transparency + i/60
  317. pl.Range = pl.Range + i/15
  318. wait()
  319. end
  320. boom:Destroy()
  321. for i,v in pairs(workspace:children()) do
  322. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  323. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  324. if (v:findFirstChild("Torso").Position - boom.Position).magnitude < 16 and v.Name ~= char.Name then
  325. v:findFirstChild("Humanoid"):TakeDamage(math.random(Dmg+2,Dmg+6))
  326. end
  327. end
  328. end
  329. if v and v:IsA("Part") and v.Name ~= "Base" then
  330. if (v.Position - boom.Position).magnitude < 16 then
  331. v.Material = "SmoothPlastic"
  332. v:BreakJoints()
  333. v.TopSurface = 10
  334. v.BottomSurface = 10
  335. v.LeftSurface = 10
  336. v.RightSurface = 10
  337. v.FrontSurface = 10
  338. v.BackSurface = 10
  339. v.Anchored = false
  340. end
  341. end))
  342. end
  343. pcall(function()
  344. bulletposition = hitposition
  345. rayPart.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
  346. rayPart:Destroy()
  347. end
  348. break
  349. end
  350. rayPart.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
  351. rayPart.Parent = modelforparts
  352. end
  353. end
  354. for i = 70, 65, -1.5 do
  355. camera.FieldOfView = i
  356. wait()
  357. end
  358. for i = 65, 70, 2.5 do
  359. camera.FieldOfView = i
  360. wait()
  361. end
  362. end
  363. if err then
  364. print(err)
  365. end
  366. end
  367. end
  368.  
  369.  
  370. charge = 100
  371.  
  372. plrgui = onwer
  373. local statusgui = Instance.new("ScreenGui", plrgui)
  374. local mainframe = Instance.new("Frame", statusgui)
  375. mainframe.Size = UDim2.new(0, 200, 0, 200)
  376. mainframe.Position = UDim2.new(.75, 0, .75, 0)
  377. mainframe.Style = 3
  378. local image = Instance.new("ImageLabel", mainframe)
  379. image.Size = UDim2.new(1, 0, .47, 0)
  380. image.Position = UDim2.new(0, 0, .235, 0)
  381. image.BackgroundTransparency = 1
  382. image.Image = "rbxassetid://145057975"
  383. local chargetext = Instance.new("TextLabel", mainframe)
  384. chargetext.FontSize = "Size18"
  385. chargetext.Size = UDim2.new(1, 0, .95, 0)
  386. chargetext.TextYAlignment = "Bottom"
  387. chargetext.BackgroundTransparency = 1
  388. chargetext.TextColor3 = Color3.new(1,1,1)
  389. game:service'RunService'.Stepped:connect(function()
  390. chargetext.Text = math.floor(charge).."%"
  391. end
  392.  
  393.  
  394.  
  395. local rm = Instance.new("Weld", torso)
  396. rm.C0 = CFrame.new(1.5, 0.5, 0)
  397. rm.C1 = CFrame.new(0, 0.5, 0)
  398. rm.Part0 = torso
  399. rm.Part1 = ra
  400. local lm = Instance.new("Weld", torso)
  401. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  402. lm.C1 = CFrame.new(0, 0.5, 0)
  403. lm.Part0 = torso
  404. lm.Part1 = la
  405.  
  406. sound = Instance.new("Sound", head)
  407. sound.Volume = 1
  408. sound.SoundId = "rbxassetid://130768080"
  409. sound.Looped = true
  410.  
  411.  
  412. dancemode = true
  413. debounceofsprint = false
  414.  
  415. --create func
  416. function part(parent, size, color, formfactor, collide, transparency)
  417. if transparency == nil then transparency=0 end
  418. if collide == nil then collide=false end
  419. if formfactor == nil then formfactor="Custom" end
  420. local p = Instance.new("Part", parent)
  421. p.FormFactor = formfactor
  422. p.CanCollide = collide
  423. p.Size = size
  424. p.Locked = true
  425. p.Transparency = transparency
  426. p.Position = torso.Position + Vector3.new(0, 1, 0)
  427. p.BrickColor = color
  428. p.FrontSurface = "SmoothNoOutlines"
  429. p.BackSurface = "SmoothNoOutlines"
  430. p.LeftSurface = "SmoothNoOutlines"
  431. p.BottomSurface = "SmoothNoOutlines"
  432. p.TopSurface = "SmoothNoOutlines"
  433. p.RightSurface = "SmoothNoOutlines"
  434. return p
  435. end
  436. function wedge(parent, size, color, formfactor, collide, transparency)
  437. if transparency==nil then transparency=0 end
  438. if collide==nil then collide=false end
  439. if formfactor==nil then formfactor="Custom" end
  440. local p = Instance.new("WedgePart", parent)
  441. p.FormFactor = formfactor
  442. p.CanCollide = collide
  443. p.Size = size
  444. p.Locked = true
  445. p.Position = torso.Position
  446. p.BrickColor = color
  447. p.FrontSurface = "SmoothNoOutlines"
  448. p.BackSurface = "SmoothNoOutlines"
  449. p.LeftSurface = "SmoothNoOutlines"
  450. p.BottomSurface = "SmoothNoOutlines"
  451. p.TopSurface = "SmoothNoOutlines"
  452. p.RightSurface = "SmoothNoOutlines"
  453. return p
  454. end
  455. function weld(part0, part1, c0, parent, c1)
  456. if parent == nil then parent=char end
  457. if c1 == nil then c1=CFrame.new() end
  458.  
  459. local wel = Instance.new("Weld", parent)
  460. wel.Part0 = part0
  461. wel.Part1 = part1
  462. wel.C0 = c0
  463. wel.C1 = c1
  464. return wel
  465. end
  466. function specialmesh(parent, meshType, scale, meshId)
  467. if meshId==nil then meshId="" end
  468. local mesh = Instance.new("SpecialMesh", parent)
  469. mesh.Scale = scale
  470. mesh.MeshType = meshType
  471. mesh.MeshId = meshId
  472. return mesh
  473. end
  474. ----------------------------------------------------------------------------------------------------------
  475. --function part(parent, size, color, formfactor, collide, transparency)
  476. --function weld(part0, part1, c0, parent, c1)
  477.  
  478. ----------------------------------------------------------------------------------------------------------
  479. function animatehuman(animationid, object)
  480. local animation = object:findFirstChild("Humanoid"):LoadAnimation(animationid)
  481. animation:Play()
  482. end
  483. local danceAnim = Instance.new("Animation", char)
  484. danceAnim.AnimationId = "http://www.roblox.com/asset/?id=130018893"
  485. danceAnim.Name = "DancingAnimation"
  486. ----------------------------------------------------------------------------------------------------------
  487. local main = Instance.new("Part", char)
  488. main.FormFactor = "Custom"
  489. main.CanCollide = false
  490. main.Size = Vector3.new(.75, 1, 1.2)
  491. main.Locked = true
  492. main.BrickColor = BrickColor.new("Institutional white")
  493. main.TopSurface = 0
  494. main.BottomSurface = 0
  495. main.Position = torso.Position
  496. main:BreakJoints()
  497. local weld1 = weld(main, ra, CFrame.new(), char, CFrame.new(0, -.8, -.6))
  498. local speaker = Instance.new("Part", char)
  499. speaker.FormFactor = "Custom"
  500. speaker.CanCollide = false
  501. speaker.Size = Vector3.new(1.5, .25, 1.4)
  502. speaker.Locked = true
  503. speaker.BrickColor = BrickColor.new("Institutional white")
  504. speaker.TopSurface = 0
  505. speaker.BottomSurface = 0
  506. speaker.Position = torso.Position
  507. speaker:BreakJoints()
  508. local weld2 = weld(speaker, main, CFrame.new(), char, CFrame.new(-.25, -1.7, .6))
  509. local speaker2 = Instance.new("Part", char)
  510. speaker2.FormFactor = "Custom"
  511. speaker2.CanCollide = false
  512. speaker2.Size = Vector3.new(1, .25, 2)
  513. speaker2.Locked = true
  514. speaker2.BrickColor = BrickColor.new("Institutional white")
  515. speaker2.TopSurface = 0
  516. speaker2.BottomSurface = 0
  517. speaker2.Position = torso.Position
  518. speaker2:BreakJoints()
  519. local weld3 = weld(speaker2, main, CFrame.new(), char, CFrame.new(0, -1.7, -.2))
  520. local main2 = Instance.new("Part", char)
  521. main2.FormFactor = "Custom"
  522. main2.CanCollide = false
  523. main2.Size = Vector3.new(.751, 1, .6)
  524. main2.Locked = true
  525. main2.BrickColor = BrickColor.new("Institutional white")
  526. main2.TopSurface = 0
  527. main2.BottomSurface = 0
  528. main2.Position = torso.Position
  529. main2:BreakJoints()
  530. local weld4 = weld(main2, ra, CFrame.new(), char, CFrame.new(0, 0, -.9))
  531. local main3 = Instance.new("Part", char)
  532. main3.FormFactor = "Custom"
  533. main3.CanCollide = false
  534. main3.Size = Vector3.new(.751, 1.45, 1)
  535. main3.Locked = true
  536. main3.BrickColor = BrickColor.new("Institutional white")
  537. main3.TopSurface = 0
  538. main3.BottomSurface = 0
  539. main3.Position = torso.Position
  540. main3:BreakJoints()
  541. local weld5 = weld(main3, ra, CFrame.new(), char, CFrame.new(0, -1.6, -.9))
  542. local main4 = Instance.new("Part", char)
  543. main4.FormFactor = "Custom"
  544. main4.CanCollide = false
  545. main4.Size = Vector3.new(1, .76, 1)
  546. Instance.new("CylinderMesh", main4)
  547. main4.Locked = true
  548. main4.BrickColor = BrickColor.new("Institutional white")
  549. main4.TopSurface = 0
  550. main4.BottomSurface = 0
  551. main4.Position = torso.Position
  552. main4:BreakJoints()
  553. local weld6 = weld(main4, main, CFrame.new(), char, CFrame.new(0, -.15, -.5)*CFrame.Angles(math.pi/2, 0, math.pi/2))
  554. local speaker3 = Instance.new("Part", char)
  555. speaker3.FormFactor = "Custom"
  556. speaker3.CanCollide = false
  557. speaker3.Size = Vector3.new(1.5, .5, 1.4)
  558. speaker3.Locked = true
  559. speaker3.BrickColor = BrickColor.new("Institutional white")
  560. speaker3.TopSurface = 0
  561. speaker3.BottomSurface = 0
  562. speaker3.Position = torso.Position
  563. speaker3:BreakJoints()
  564. local welds1 = weld(speaker3, main, CFrame.new(), char, CFrame.new(-.25, -2.2, .6))
  565. local speaker4 = Instance.new("Part", char)
  566. speaker4.FormFactor = "Custom"
  567. speaker4.CanCollide = false
  568. speaker4.Size = Vector3.new(1, .5, 2)
  569. speaker4.Locked = true
  570. speaker4.BrickColor = BrickColor.new("Institutional white")
  571. speaker4.TopSurface = 0
  572. speaker4.BottomSurface = 0
  573. speaker4.Position = torso.Position
  574. speaker4:BreakJoints()
  575. local welds2 = weld(speaker4, main, CFrame.new(), char, CFrame.new(0, -2.205, -.2))
  576. local speaker5 = Instance.new("Part", char)
  577. speaker5.FormFactor = "Custom"
  578. speaker5.CanCollide = false
  579. speaker5.Size = Vector3.new(1.4, .4, 1.3)
  580. speaker5.Locked = true
  581. speaker5.BrickColor = BrickColor.new("Institutional white")
  582. speaker5.TopSurface = 0
  583. speaker5.BottomSurface = 0
  584. speaker5.Position = torso.Position
  585. speaker5:BreakJoints()
  586. local welds3 = weld(speaker5, main, CFrame.new(), char, CFrame.new(-.25, -2, .6))
  587. local speaker6 = Instance.new("Part", char)
  588. speaker6.FormFactor = "Custom"
  589. speaker6.CanCollide = false
  590. speaker6.Size = Vector3.new(.9, .4, 1.9)
  591. speaker6.Locked = true
  592. speaker6.BrickColor = BrickColor.new("Institutional white")
  593. speaker6.TopSurface = 0
  594. speaker6.BottomSurface = 0
  595. speaker6.Position = torso.Position
  596. speaker6:BreakJoints()
  597. local welds4 = weld(speaker6, main, CFrame.new(), char, CFrame.new(0, -2, -.2))
  598.  
  599. local support = Instance.new("Part", char)
  600. support.FormFactor = "Custom"
  601. support.CanCollide = false
  602. support.Size = Vector3.new(.3, .4, .6)
  603. support.Locked = true
  604. support.BrickColor = BrickColor.new("Institutional white")
  605. support.TopSurface = 0
  606. support.BottomSurface = 0
  607. support.Position = torso.Position
  608. support:BreakJoints()
  609. local welds5 = weld(support, main, CFrame.new(), char, CFrame.new(0, -1.5, -.4))
  610.  
  611.  
  612. debounce = false
  613.  
  614. function stopsound()
  615. if debounce then return end
  616. if not sound.IsPlaying then return end
  617. sound:stop()
  618. debounce = true
  619. local dancebro = Instance.new("StringValue", game:service'Lighting')
  620. dancebro.Name = ('STOPDANCING'..plr.Name)
  621. game:service'Debris':AddItem(dancebro, 1)
  622. coroutine.wrap(function()
  623. while not sound.IsPlaying do
  624. if charge <= 100 then
  625. charge = charge + .1
  626. wait()
  627. elseif charge > 100 then
  628. charge = 100
  629. break
  630. end
  631. end
  632. end)()
  633. wait(.1)
  634. debounce = false
  635. end
  636. mouse.Button1Down:connect(function(mous)
  637. if debounceofsprint then return end
  638. if sound.IsPlaying then return end
  639. if debounce then return end
  640. sound:play()
  641. for i = 70, 55, -.35 do
  642. if not sound.IsPlaying then debounce = true camera.FieldOfView = 70 return end
  643. camera.FieldOfView = i
  644. wait()
  645. end
  646. for i = 65, 70, 2.5 do
  647. if not sound.IsPlaying then debounce = true camera.FieldOfView = 70 return end
  648. camera.FieldOfView = i
  649. wait()
  650. end
  651. if debounce then debounce = false return end
  652. if dancemode then
  653. for i,v in pairs(workspace:children()) do
  654. if not sound.IsPlaying then break end
  655. coroutine.wrap(function()
  656. if v:IsA("Model") and v:findFirstChild("Humanoid") and v.Name ~= char.Name and v:findFirstChild("ModelForParts") == nil and v:findFirstChild("Torso") and (v:findFirstChild("Torso").Position - head.Position).magnitude < 30 then
  657. danceAnimClone = danceAnim:clone()
  658. danceAnimClone.Parent = v
  659. danceAnimClone.AnimationId = "http://www.roblox.com/asset/?id=130018893"
  660. wait()
  661. NLS([[
  662. function animatehuman(animationid, object)
  663. local animation = object:findFirstChild("Humanoid"):LoadAnimation(animationid)
  664. animation:Play()
  665. end
  666. while wait(.5) do
  667. if game:service'Lighting':findFirstChild("STOPDANCING]]..plr.Name..[[") and game:service'Lighting':findFirstChild("STOPDANCING]]..plr.Name..[["):IsA("StringValue") then game:service'Debris':AddItem(script.Parent:findFirstChild("DancingAnimation"), 5) break end
  668. animatehuman(script.Parent:findFirstChild("DancingAnimation"), script.Parent)
  669. end
  670. ]], v)
  671. end
  672. end)()
  673. end
  674. end
  675. coroutine.wrap(function()
  676. while sound.IsPlaying do
  677. if charge <= 1 then
  678. if debounce then break end
  679. if not sound.IsPlaying then break end
  680. sound:stop()
  681. debounce = true
  682. chargetext.TextColor3 = Color3.new(1,0,0)
  683. dancebro = Instance.new("StringValue", game:service'Lighting')
  684. dancebro.Name = ('STOPDANCING'..plr.Name)
  685. game:service'Debris':AddItem(dancebro, 1)
  686. coroutine.wrap(function()
  687. repeat wait() until charge >= 10
  688. debounce = false
  689. chargetext.TextColor3 = Color3.new(1,1,1)
  690. end)()
  691. coroutine.wrap(function()
  692. while not sound.IsPlaying do
  693. if charge <= 100 then
  694. charge = charge + .1
  695. wait()
  696. elseif charge > 100 then
  697. charge = 100
  698. break
  699. end
  700. end
  701. end)()
  702. else
  703. charge = charge - .08
  704. wait()
  705. end
  706. end
  707. end)()
  708. coroutine.wrap(function()
  709. local ran,err = ypcall(function()
  710. while sound.IsPlaying and Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 20 do
  711. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
  712. if not sound.IsPlaying then break end
  713. rayCast(speaker, 1250, 0, 5, "Lavender")
  714. wait(.35)
  715. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
  716. if not sound.IsPlaying then break end
  717. rayCast(speaker, 1250, 0, 5, "Pink")
  718. wait(.95)
  719. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
  720. if not sound.IsPlaying then break end
  721. rayCast(speaker, 1250, 0, 5, "Bright bluish green")
  722. wait(.55)
  723. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
  724. if not sound.IsPlaying then break end
  725. rayCast(speaker, 1250, 0, 5, "Pink")
  726. wait(.4)
  727. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
  728. if not sound.IsPlaying then break end
  729. rayCast(speaker, 1250, 0, 5, "Bright bluish green")
  730. local pl = Instance.new("PointLight", torso)
  731. pl.Color = Color3.new(153/255/1.25, 102/255/1.25, 204/255/1.25)
  732. pl.Range = 30
  733. pl.Brightness = 0.7
  734. game:service'Debris':AddItem(pl, .3)
  735. wait(.45)
  736. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
  737. if not sound.IsPlaying then break end
  738. rayCast(speaker, 1250, 0, 5, "Lavender")
  739. wait(.75)
  740. end
  741. end) if err then print(err) end
  742. end)()
  743. end)
  744.  
  745. mouse.Button1Up:connect(function(mous)
  746. stopsound()
  747. end)
  748. ctrl = false
  749. mouse.KeyDown:connect(function(k)
  750. if string.byte(k) == 50 then
  751. ctrl = true
  752. humanoid.WalkSpeed = 8
  753. end
  754. if string.byte(k) == 48 then
  755. humanoid.WalkSpeed = 28
  756. end
  757. end)
  758.  
  759. mouse.KeyUp:connect(function(k)
  760. if string.byte(k) == 50 then
  761. ctrl = false
  762. humanoid.WalkSpeed = 16
  763. end
  764. if string.byte(k) == 48 then
  765. humanoid.WalkSpeed = 16
  766. if ctrl then
  767. humanoid.WalkSpeed = 8
  768. end
  769. end
  770. end)
  771.  
  772. humanoid.Died:connect(function()
  773. deathpos = torso.Position
  774. WorkModel = Instance.new("Model", workspace)
  775. WorkModel.Name = " "
  776. wait(1/60)
  777. humanoid.Parent = nil
  778. if torso then
  779. local Head = char:FindFirstChild("Head")
  780. if Head then
  781. local Neck = Instance.new("Weld")
  782. Neck.Name = "Neck"
  783. Neck.Part0 = torso
  784. Neck.Part1 = Head
  785. Neck.C0 = CFrame.new(0, 1.5, 0)
  786. Neck.C1 = CFrame.new()
  787. Neck.Parent = torso
  788. end
  789. local Limb = char:FindFirstChild("Right Arm")
  790. if Limb then
  791.  
  792. Limb.CFrame = torso.CFrame * CFrame.new(1.5, 0, 0)
  793. local Joint = Instance.new("Glue")
  794. Joint.Name = "RightShoulder"
  795. Joint.Part0 = torso
  796. Joint.Part1 = Limb
  797. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  798. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  799. Joint.Parent = torso
  800.  
  801. local B = Instance.new("Part")
  802. B.TopSurface = 0
  803. B.BottomSurface = 0
  804. B.formFactor = "Symmetric"
  805. B.Size = Vector3.new(1, 1, 1)
  806. B.Transparency = 1
  807. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  808. B.Parent = char
  809. B.CanCollide = false
  810. local W = Instance.new("Weld")
  811. W.Part0 = Limb
  812. W.Part1 = B
  813. W.C0 = CFrame.new(0, -0.5, 0)
  814. W.Parent = Limb
  815.  
  816. end
  817. local Limb = char:FindFirstChild("Left Arm")
  818. if Limb then
  819.  
  820. Limb.CFrame = torso.CFrame * CFrame.new(-1.5, 0, 0)
  821. local Joint = Instance.new("Glue")
  822. Joint.Name = "LeftShoulder"
  823. Joint.Part0 = torso
  824. Joint.Part1 = Limb
  825. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  826. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  827. Joint.Parent = torso
  828.  
  829. local B = Instance.new("Part")
  830. B.TopSurface = 0
  831. B.BottomSurface = 0
  832. B.formFactor = "Symmetric"
  833. B.Size = Vector3.new(1, 1, 1)
  834. B.Transparency = 1
  835. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  836. B.Parent = char
  837. B.CanCollide = false
  838. local W = Instance.new("Weld")
  839. W.Part0 = Limb
  840. W.Part1 = B
  841. W.C0 = CFrame.new(0, -0.5, 0)
  842. W.Parent = Limb
  843.  
  844. end
  845. local Limb = char:FindFirstChild("Right Leg")
  846. if Limb then
  847.  
  848. Limb.CFrame = torso.CFrame * CFrame.new(0.5, -2, 0)
  849. local Joint = Instance.new("Glue")
  850. Joint.Name = "RightHip"
  851. Joint.Part0 = torso
  852. Joint.Part1 = Limb
  853. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  854. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  855. Joint.Parent = torso
  856.  
  857. local B = Instance.new("Part")
  858. B.TopSurface = 0
  859. B.BottomSurface = 0
  860. B.formFactor = "Symmetric"
  861. B.Size = Vector3.new(1, 1, 1)
  862. B.Transparency = 1
  863. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  864. B.Parent = char
  865. B.CanCollide = false
  866. local W = Instance.new("Weld")
  867. W.Part0 = Limb
  868. W.Part1 = B
  869. W.C0 = CFrame.new(0, -0.5, 0)
  870. W.Parent = Limb
  871.  
  872. end
  873. local Limb = char:FindFirstChild("Left Leg")
  874. if Limb then
  875.  
  876. Limb.CFrame = torso.CFrame * CFrame.new(-0.5, -2, 0)
  877. local Joint = Instance.new("Glue")
  878. Joint.Name = "LeftHip"
  879. Joint.Part0 = torso
  880. Joint.Part1 = Limb
  881. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  882. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  883. Joint.Parent = torso
  884.  
  885. local B = Instance.new("Part")
  886. B.TopSurface = 0
  887. B.BottomSurface = 0
  888. B.formFactor = "Symmetric"
  889. B.Size = Vector3.new(1, 1, 1)
  890. B.Transparency = 1
  891. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  892. B.Parent = char
  893. B.CanCollide = false
  894. local W = Instance.new("Weld")
  895. W.Part0 = Limb
  896. W.Part1 = B
  897. W.C0 = CFrame.new(0, -0.5, 0)
  898. W.Parent = Limb
  899. end
  900. for blood = 0, 3 do
  901. local blood = Instance.new("Part", workspace)
  902. blood.BrickColor = BrickColor.Red()
  903. blood.FormFactor = "Custom"
  904. blood.Size = Vector3.new(.2,.2,.2)
  905. blood.Anchored = true
  906. blood.TopSurface = "Smooth"
  907. blood.BackSurface = "Smooth"
  908. local bloodmesh = Instance.new("CylinderMesh", blood)
  909. bloodmesh.Scale = Vector3.new(3, 0, 3)
  910. local rayzb = Ray.new(torso.Position, Vector3.new(0, -20, 0) + Vector3.new(math.random(-2, 2), 0, math.random(-2, 2)))
  911. local hitzb, hitposb = workspace:findPartOnRay(rayzb, char)
  912. if hitzb then
  913. blood.CFrame = CFrame.new(hitposb.x,hitposb.y,hitposb.z)
  914. blood.CFrame = blood.CFrame * CFrame.new(0, .05, 0)
  915. coroutine.wrap(function()
  916. for cframe = 0, math.random(16, 24) do
  917. bloodmesh.Scale = bloodmesh.Scale + Vector3.new(.45, 0, .45)
  918. wait()
  919. end
  920. end)()
  921. elseif not hitzb then
  922. blood:Destroy()
  923. end
  924. end
  925. local BP = Instance.new("BodyPosition", torso)
  926. BP.maxForce = Vector3.new(1,1,1)/0
  927. BP.position = deathpos
  928. for i,v in pairs(char:children()) do
  929. if v:IsA("Part") then v.Parent = WorkModel end
  930. end
  931. wait(.3)
  932. BP:Destroy()
  933. end
  934. end)
  935.  
  936. local rlegm = Instance.new("Motor", torso)
  937. rlegm.C0 = CFrame.new(0.5, -1, 0)
  938. rlegm.C1 = CFrame.new(0, 1, 0)
  939. rlegm.Part0 = torso
  940. rlegm.Part1 = rl
  941. rlegm.Name = "Right Hip"
  942. local llegm = Instance.new("Motor", torso)
  943. llegm.C0 = CFrame.new(-0.5, -1, 0)
  944. llegm.C1 = CFrame.new(0, 1, 0)
  945. llegm.Part0 = torso
  946. llegm.Part1 = ll
  947. llegm.Name = "Left Hip"
  948. neck.C0 = CFrame.new(0, 1, 0)
  949. neck.C1 = CFrame.new(0, -0.5, 0)
  950. rj.C0 = CFrame.new(0, -1, 0)
  951. rj.C1 = CFrame.new(0, -1, 0)
  952. rsc0 = rm.C0
  953. lsc0 = lm.C0
  954. neckc0 = neck.C0
  955. rootc0 = rj.C0
  956. llc0 = llegm.C0
  957. rlc0 = rlegm.C0
  958. speed = 0.4
  959. angle = 0
  960. anglespeed = 0
  961. mvmnt = 0
  962. game:service'RunService'.RenderStepped:connect(function()
  963. angle = (angle % 100) + anglespeed/10
  964. mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  965. local rscf = rsc0
  966. local lscf = lsc0
  967. local rlcf = rlc0
  968. local llcf = llc0
  969. local rjcf = rootc0
  970. local ncf = neckc0
  971. local rayz = Ray.new(rootpart.Position, Vector3.new(0, -4.1, 0))
  972. local hitz, enz = workspace:findPartOnRay(rayz, char)
  973. --math.asin(mouse.UnitRay.Direction.y)
  974. ncf = neckc0 * CFrame.Angles(camera.CoordinateFrame.lookVector.y, 0, 0)
  975. rscf = rsc0 * CFrame.new(-.55, 0, .35) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2, 0, 0)
  976. lscf = lsc0 * CFrame.new(.85, 0, -.65) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2, 0, math.rad(45))
  977. if not hitz then
  978. ncf = neckc0 * CFrame.Angles(math.pi/18, 0, 0)
  979. rscf = rsc0 * CFrame.new(-.45, 0, -.75) * CFrame.Angles(math.pi/5+math.pi/18, 0, math.rad(-70))
  980. lscf = lsc0 * CFrame.new(.35, 0, 0) * CFrame.Angles(math.pi/3.5+math.pi/18, 0, 0)
  981. rjcf = rootc0 * CFrame.Angles(-math.pi/32, 0, 0)
  982. rlcf = rlc0 * CFrame.new(0, 0.7, -0.5) * CFrame.Angles(-math.pi/14, 0, 0)
  983. llcf = llc0 * CFrame.Angles(-math.pi/20, 0, 0)
  984. elseif humanoid.Sit then
  985. ncf = neckc0 * CFrame.Angles(0, 0, 0)
  986. rjcf = rootc0 * CFrame.new(0, -.2, 0)
  987. rlcf = rlc0 * CFrame.Angles(math.pi/2, 0, math.rad(7.5))
  988. llcf = llc0 * CFrame.Angles(math.pi/2, 0, -math.rad(7.5))
  989. if sprinting then
  990. debounceofsprint = false
  991. sprinting = false
  992. end
  993. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 2 then
  994. speed = 0.3
  995. if ctrl then
  996. rjcf = rootc0 * CFrame.new(0, -1.25, 0)
  997. llcf = llc0 * CFrame.new(0, 0, -.45) * CFrame.Angles(-math.pi/2.2, 0, 0)
  998. rlcf = rlcf * CFrame.new(0, 1.25, -.85)
  999. else
  1000. rjcf = rootc0
  1001. rlcf = rlc0 * CFrame.Angles(-math.rad(.5), 0, math.rad(1.5))
  1002. llcf = llc0 * CFrame.Angles(math.rad(1.5), 0, -math.rad(1.5))
  1003. end
  1004. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 20 then
  1005. if not humanoid.Sit then
  1006. anglespeed = 3
  1007. if ctrl then
  1008. anglespeed = 3
  1009. ncf = neckc0 * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/18, 0, 0)
  1010. rjcf = rootc0 * CFrame.new(0, -.35, 0) * CFrame.Angles(-math.pi/18, 0, 0)
  1011. rscf = rsc0 * CFrame.new(-.55, 0, .35) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2+math.pi/18, 0, 0)
  1012. lscf = lsc0 * CFrame.new(.85, 0, -.65) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2+math.pi/18, 0, math.rad(45))
  1013. llcf = llc0 * CFrame.new(0, .45, -.35) * CFrame.Angles(math.pi/18 - math.sin(angle)*.45, 0, 0)
  1014. rlcf = rlcf * CFrame.new(0, .45, -.35) * CFrame.Angles(math.pi/18 + math.sin(angle)*.45, 0, 0)
  1015. else
  1016. rjcf = rootc0
  1017. rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*.65, 0, math.rad(.5))
  1018. llcf = llc0 * CFrame.Angles(math.sin(angle)*.65, 0, -math.rad(.5))
  1019. end
  1020. if sprinting then
  1021. debounceofsprint = false
  1022. sprinting = false
  1023. end
  1024. end
  1025. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then
  1026. if not humanoid.Sit then
  1027. anglespeed = 3
  1028. ncf = neckc0 * CFrame.Angles(math.pi/18, 0, 0)
  1029. rscf = rsc0 * CFrame.new(-.45, 0, -.75) * CFrame.Angles(math.pi/5+math.pi/18, 0, math.rad(-70))
  1030. lscf = lsc0 * CFrame.new(.35, 0, 0) * CFrame.Angles(math.pi/3.5+math.pi/18, 0, 0)
  1031. rjcf = rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/18, math.sin(angle)*.1, math.sin(angle)*.045)
  1032. rlcf = rlc0 * CFrame.new(0, 0, -.6+math.abs(mvmnt)*0.125) * CFrame.Angles(-math.pi/18+math.sin(-angle)*1.3, 0, math.rad(.5))
  1033. llcf = llc0 * CFrame.new(0, 0, -math.abs(mvmnt)*0.125) * CFrame.Angles(-math.pi/18+math.sin(angle)*1.3, 0, -math.rad(.5))
  1034. sprinting = true
  1035. debounceofsprint = true
  1036. end
  1037. end
  1038. rm.C0 = clerp(rm.C0,rscf,speed)
  1039. lm.C0 = clerp(lm.C0,lscf,speed)
  1040. rj.C0 = clerp(rj.C0,rjcf,speed)
  1041. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  1042. llegm.C0 = clerp(llegm.C0,llcf,speed)
  1043. neck.C0 = clerp(neck.C0,ncf,speed)
  1044. end)
Advertisement
Add Comment
Please, Sign In to add comment