Advertisement
Void_scripter0

possessive

Jan 11th, 2019
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.51 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
  5. print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  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 Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  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.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126.  
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144. --Made by Zalgo_exe.. and the one who made the edit containing boobs.. why.. that's just.. a m a z i n g.. no sarcasm.
  145. wait(0.2)
  146. local Player, Character, Mouse = game:service("Players").LocalPlayer, game:GetService("Players").LocalPlayer.Character, game:GetService("Players").LocalPlayer:GetMouse();
  147. local Torso = Character:FindFirstChild("Torso")
  148. local rootPart = Character:FindFirstChild("HumanoidRootPart")
  149. local Humanoid = Character:FindFirstChild("Humanoid")
  150. local Head = Character:FindFirstChild("Head")
  151. local Right_Arm = Character:FindFirstChild("Right Arm")
  152. local Left_Arm = Character:FindFirstChild("Left Arm")
  153. local Right_Leg = Character:FindFirstChild("Right Leg")
  154. local Left_Leg = Character:FindFirstChild("Left Leg")
  155. local Right_Shoulder = Torso:FindFirstChild("Right Shoulder")
  156. local Left_Shoulder = Torso:FindFirstChild("Left Shoulder")
  157. local Right_Hip = Torso:FindFirstChild("Right Hip")
  158. local Left_Hip = Torso:FindFirstChild("Left Hip")
  159. local Neck = Torso:FindFirstChild("Neck")
  160. local rootPart = Character:FindFirstChild("HumanoidRootPart")
  161. local rootJoint = rootPart:FindFirstChild("RootJoint")
  162. local CurrentIdle = "Idling1"
  163. local Degree = 0.0175438596491228
  164. local canremove = false
  165. local debounce = false
  166. local UIService=game:GetService'UserInputService'
  167. _G.SongName = math.random(1,9025232)
  168.  
  169. local Hood = Instance.new("Part",Head)
  170. Hood.Name = "Hood"
  171. Hood.Shape = Enum.PartType.Ball
  172. Hood.CanCollide = false
  173. Hood.BrickColor = BrickColor.new("Medium stone grey")
  174. Hood.Transparency = 0
  175. Hood.Material = "Grass"
  176. Hood.Size = Vector3.new(0.1, 0.1, 0.1)
  177. Hood.TopSurface = Enum.SurfaceType.Smooth
  178. Hood.BottomSurface = Enum.SurfaceType.Smooth
  179. local Weld = Instance.new("Weld", Hood)
  180. Weld.Part0 = Head
  181. Weld.Part1 = Hood
  182. Weld.C1 = CFrame.new(0,0,0.6)
  183. HoodMesh = Instance.new("FileMesh",Hood)
  184. HoodMesh.MeshId = "http://www.roblox.com/asset/?id=13520910"
  185. HoodMesh.TextureId = "http://www.roblox.com/asset/?id=1772096775"
  186. HoodMesh.Scale = Vector3.new(1,1,1)
  187.  
  188. local Hair = Instance.new("Part",Head)
  189. Hair.Name = "Hair"
  190. Hair.Shape = Enum.PartType.Ball
  191. Hair.CanCollide = false
  192. Hair.BrickColor = BrickColor.new("Really black")
  193. Hair.Transparency = 0
  194. Hair.Material = "Grass"
  195. Hair.Size = Vector3.new(0.1, 0.1, 0.1)
  196. Hair.TopSurface = Enum.SurfaceType.Smooth
  197. Hair.BottomSurface = Enum.SurfaceType.Smooth
  198. local Weld = Instance.new("Weld", Hair)
  199. Weld.Part0 = Head
  200. Weld.Part1 = Hair
  201. Weld.C1 = CFrame.new(0,-0.5,0)
  202. HairMesh = Instance.new("FileMesh",Hair)
  203. HairMesh.MeshId = "http://www.roblox.com/asset/?id=15730710"
  204. HairMesh.TextureId = "http://www.roblox.com/asset/?id=13332337"
  205. HairMesh.Scale = Vector3.new(1.1,1.1,1.1)
  206.  
  207. lit = Instance.new("PointLight",Torso)
  208. lit.Brightness = 0
  209. lit.Range = 3
  210. lit.Color = Color3.fromRGB(180, 128, 255)
  211.  
  212. sin = math.sin
  213. Right_Leg.FormFactor = "Custom";
  214. Left_Leg.FormFactor = "Custom";
  215. rootPart.Archivable = true;
  216. rootJoint.Archivable = true;
  217. c_new = CFrame.new;
  218. c_angles = CFrame.Angles;
  219. i_new = Instance.new
  220. Humanoid:ClearAllChildren();
  221. local isAttacking = false
  222. local isSprinting = false
  223. local Animations = false
  224. local Angle = 0
  225. local Axis = 0
  226. local angleSpeed = 1
  227. local axisSpeed = angleSpeed
  228. local currentAnim
  229. local levetatingheight = 3
  230. local WalkType = "Ground"
  231.  
  232. function Sound(parent,loop,vol,id)
  233. local s = Instance.new('Sound',parent)
  234. s.Looped = loop
  235. s.Volume = vol
  236. s.MaxDistance=200
  237. s.EmitterSize=20
  238. s.SoundId = 'rbxassetid://'..tostring(id)
  239. s:Play()
  240. if loop == false then
  241. wait(s.TimeLength)
  242. s:Destroy()
  243. end
  244. end
  245.  
  246. Sound(rootPart,true,1,708003712)
  247.  
  248. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  249. wld = Instance.new("Weld", wp1)
  250. wld.Part0 = wp0
  251. wld.Part1 = wp1
  252. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  253. return wld
  254. end
  255.  
  256. function noOutline(part)
  257. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  258. end
  259.  
  260. local function Part(Name,Color, Material, Transparency,Shape, Size, CFrame,CanCollide,Anchored,parent)
  261. local partie = i_new("Part",parent)
  262. partie.Name=Name
  263. partie.BrickColor = BrickColor.new(Color)
  264. partie.Material = Material
  265. partie.Shape = Shape
  266. partie.Transparency = Transparency
  267. partie.Size = Size
  268. partie.CFrame = CFrame
  269. partie.CanCollide = CanCollide
  270. partie.Anchored = Anchored
  271. return partie
  272. end
  273.  
  274.  
  275.  
  276. function swait(num)
  277. if num == 0 or num == nil then
  278. game:GetService("RunService").Stepped:wait(0)
  279. else
  280. for i = 0, num do
  281. game:GetService("RunService").Stepped:wait(0)
  282. end
  283. end
  284. end
  285.  
  286. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  287. local mesh = i_new(Mesh)
  288. mesh.Parent = part
  289. if Mesh == "SpecialMesh" then
  290. mesh.MeshType = meshtype
  291. mesh.MeshId = meshid
  292. end
  293. mesh.Offset = offset
  294. mesh.Scale = scale
  295. return mesh
  296. end
  297. mouse = Player:GetMouse()
  298. transform = false
  299. debounce = false
  300. coughing = false
  301.  
  302. Debris = game:GetService("Debris")
  303.  
  304. local Particle = Instance.new("ParticleEmitter",nil)
  305. Particle.Enabled = false
  306. Particle.LightEmission = 0.2
  307. Particle.Rate = 150
  308. Particle.ZOffset = 1
  309. Particle.Rotation = NumberRange.new(-180, 180)
  310.  
  311. local RINGFIRE = {}
  312.  
  313. function ParticleEmitter(Table)
  314. local PRTCL = Particle:Clone()
  315. local Color1 = Table.Color1 or Color3.new(1,1,1)
  316. local Color2 = Table.Color2 or Color3.new(1,1,1)
  317. local Speed = Table.Speed or 5
  318. local Drag = Table.Drag or 0
  319. local Size1 = Table.Size1 or 1
  320. local Size2 = Table.Size2 or 5
  321. local Lifetime1 = Table.Lifetime1 or 1
  322. local Lifetime2 = Table.Lifetime2 or 1.5
  323. local Parent = Table.Parent or Torso
  324. local Emit = Table.Emit or 100
  325. local Offset = Table.Offset or 360
  326. local Acel = Table.Acel or Vector3.new(0,0,0)
  327. local Enabled = Table.Enabled or false
  328. local Texture = Table.Texture or "281983280"
  329. local RotS = Table.RotSpeed or NumberRange.new(-15, 15)
  330. local Trans1 = Table.Transparency1 or 0
  331. local Trans2 = Table.Transparency2 or 0
  332. PRTCL.Parent = Parent
  333. PRTCL.RotSpeed = RotS
  334. PRTCL.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,Trans1),NumberSequenceKeypoint.new(1,Trans2)})
  335. PRTCL.Texture = "http://www.roblox.com/asset/?id="..Texture
  336. PRTCL.Color = ColorSequence.new(Color1,Color2)
  337. PRTCL.Size = NumberSequence.new(Size1,Size2)
  338. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  339. PRTCL.Speed = NumberRange.new(Speed)
  340. PRTCL.VelocitySpread = Offset
  341. PRTCL.Drag = Drag
  342. PRTCL.Acceleration = Acel
  343. if Enabled == false then
  344. PRTCL:Emit(Emit)
  345. Debris:AddItem(PRTCL,Lifetime2)
  346. else
  347. PRTCL.Enabled = true
  348. end
  349. return PRTCL
  350. end
  351.  
  352. local EYE1 = Instance.new("Attachment",Head)
  353. EYE1.Position = (Vector3.new(0.4, 0.5, -1.195)/2)
  354. local EYE2 = Instance.new("Attachment",Head)
  355. EYE2.Position = (Vector3.new(-0.4, 0.5, -1.195)/2)
  356. local PRTCL = ParticleEmitter({Transparency1 = 1, Transparency2 = 0, Speed = 0.2, Acel = Vector3.new(2,0.5,0.6), RotSpeed = NumberRange.new(-15, 15), Drag = 0, Size1 = 0.15, Size2 = 0, Lifetime1 = 0.4, Lifetime2 = 1.4, Parent = EYE1, Emit = 100, Offset = 360, Enabled = true, Color1 = Color3.fromRGB(180, 128, 255), Color2 = Color3.new(0,0,0), Texture = "1523916715"})
  357. PRTCL.LockedToPart = true
  358. PRTCL.Rate = 185
  359. PRTCL.ZOffset = 0.1
  360. PRTCL.LightEmission = 1
  361. PRTCL.Enabled = false
  362. table.insert(RINGFIRE,PRTCL)
  363. local PRTCL2 = ParticleEmitter({Transparency1 = 1, Transparency2 = 0, Speed = 0.2, Acel = Vector3.new(-2,0.5,0.6), RotSpeed = NumberRange.new(-15, 15), Drag = 0, Size1 = 0.15, Size2 = 0, Lifetime1 = 0.4, Lifetime2 = 1.4, Parent = EYE2, Emit = 100, Offset = 360, Enabled = true, Color1 = Color3.fromRGB(180, 128, 255), Color2 = Color3.new(0,0,0), Texture = "1523916715"})
  364. PRTCL2.LockedToPart = true
  365. PRTCL2.Rate = 185
  366. PRTCL2.ZOffset = 0.1
  367. PRTCL2.LightEmission = 1
  368. PRTCL2.Enabled = false
  369. table.insert(RINGFIRE,PRTCL2)
  370.  
  371. talking = false
  372.  
  373. mouse.KeyDown:connect(function(key)
  374. if key == "e" and transform == false and debounce == false and talking == false then
  375. debounce = true
  376. talking = true
  377. SOU = Instance.new("Sound")
  378. SOU.Parent = Character.Torso
  379. SOU.SoundId = "rbxassetid://1384757081"
  380. SOU.Volume = 15
  381. SOU.Looped = false
  382. SOU.Pitch = 1
  383. SOU.TimePosition = 4.5
  384. SOU:Play()
  385. wait(1.5)
  386. talking = false
  387. HairMesh.TextureId = "http://www.roblox.com/asset/?id=101678162"
  388. Character['Body Colors'].HeadColor=BrickColor.new('Really black')
  389. Character['Body Colors'].TorsoColor=BrickColor.new('Really black')
  390. Character['Body Colors'].RightArmColor=BrickColor.new('Really black')
  391. Character['Body Colors'].LeftArmColor=BrickColor.new('Really black')
  392. Character['Body Colors'].RightLegColor=BrickColor.new('Really black')
  393. Character['Body Colors'].LeftLegColor=BrickColor.new('Really black')
  394. shirt.ShirtTemplate = "rbxassetid://767866442"
  395. pants.PantsTemplate = "rbxassetid://842364401"
  396. coroutine.wrap(function()
  397. wait(7)
  398. for i = 1,100 do
  399. Hair.Transparency = Hair.Transparency + 0.01
  400. wait()
  401. end
  402. end)()
  403. DP = Instance.new("Sound")
  404. DP.Parent = Character.Torso
  405. DP.SoundId = "rbxassetid://244502094"
  406. DP.Volume = 10
  407. DP.Looped = true
  408. DP.Pitch = 1
  409. DP:Play()
  410. q=Instance.new('ParticleEmitter',Head)
  411. q.Rate = 500
  412. q.Speed = NumberRange.new(7)
  413. q.VelocitySpread = 0
  414. q.EmissionDirection = "Front"
  415. q.Lifetime = NumberRange.new(0.1,1)
  416. q.Texture = 'rbxassetid://164417280'
  417. q.Acceleration = Vector3.new(0,-50,0)
  418. q.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.1), NumberSequenceKeypoint.new(1, 0.01, 0.01)})
  419. q.RotSpeed = NumberRange.new(-180, 180)
  420. q.Rotation = NumberRange.new(-360, 360)
  421. q.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  422. coughing = true
  423. wait(10) --28 is the original but it's too long
  424. DP:Stop()
  425. q.Enabled = false
  426. coughing = false
  427. SOU:Stop()
  428. wait(1)
  429. talking = true
  430. PRTCL2.Enabled = true
  431. PRTCL.Enabled = true
  432. HoodMesh.MeshId = "http://www.roblox.com/asset/?id=13520257"
  433. HoodMesh.TextureId = "http://www.roblox.com/asset/?id=558227098"
  434. Head.face.Texture = "rbxassetid://256293532"
  435. Head.face.Color3 = Color3.new(0,0,0)
  436. S = Instance.new("Sound")
  437. S.Parent = Character.Torso
  438. S.SoundId = "rbxassetid://858697889"
  439. S.Volume = 10
  440. S.Looped = false
  441. S.Pitch = 1
  442. S:Play()
  443. wait(2)
  444. talking = false
  445. PRTCL2.Enabled = false
  446. PRTCL.Enabled = false
  447. q:Destroy()
  448. transform = true
  449. end end)
  450.  
  451. mouse.KeyDown:connect(function(key)
  452. if key == "v" and transform == true and PRTCL.Enabled == false and talking == false then
  453. talking = true
  454. lit.Brightness = 1
  455. PRTCL2.Enabled = true
  456. PRTCL.Enabled = true
  457. S = Instance.new("Sound")
  458. S.Parent = Character.Torso
  459. S.SoundId = "rbxassetid://398631872"
  460. S.Volume = 10
  461. S.Looped = false
  462. S.Pitch = 1
  463. S.TimePosition = 2
  464. S:Play()
  465. wait(14)
  466. PRTCL2.Enabled = false
  467. PRTCL.Enabled = false
  468. lit.Brightness = 0
  469. talking = false
  470. end end)
  471.  
  472. laughing = false
  473.  
  474. mouse.KeyDown:connect(function(key)
  475. if key == "r" and transform == true and PRTCL.Enabled == false and talking == false then
  476. talking = true
  477. lit.Brightness = 1
  478. PRTCL2.Enabled = true
  479. PRTCL.Enabled = true
  480. S = Instance.new("Sound")
  481. S.Parent = Character.Torso
  482. S.SoundId = "rbxassetid://177359995"
  483. S.Volume = 10
  484. S.Looped = false
  485. S.Pitch = 1
  486. S:Play()
  487. wait(3.35)
  488. PRTCL2.Enabled = false
  489. PRTCL.Enabled = false
  490. lit.Brightness = 0
  491. talking = false
  492. end end)
  493.  
  494. mouse.KeyDown:connect(function(key)
  495. if key == "t" and transform == true and PRTCL.Enabled == false and talking == false then
  496. talking = true
  497. PRTCL2.Enabled = true
  498. PRTCL.Enabled = true
  499. lit.Brightness = 1
  500. S = Instance.new("Sound")
  501. S.Parent = Character.Torso
  502. S.SoundId = "rbxassetid://858697889"
  503. S.Volume = 10
  504. S.Looped = false
  505. S.Pitch = 1
  506. S:Play()
  507. wait(3.8)
  508. PRTCL2.Enabled = false
  509. PRTCL.Enabled = false
  510. lit.Brightness = 0
  511. talking = false
  512. end end)
  513.  
  514. mouse.KeyDown:connect(function(key)
  515. if key == "y" and transform == true then
  516. S = Instance.new("Sound")
  517. S.Parent = Character.Torso
  518. S.SoundId = "rbxassetid://708003498"
  519. S.Volume = 10
  520. S.Looped = false
  521. S.Pitch = 1
  522. S:Play()
  523. end end)
  524.  
  525. mouse.KeyDown:connect(function(key)
  526. if key == "r" and transform == false and talking == false then
  527. talking = true
  528. S = Instance.new("Sound")
  529. S.Parent = Character.Torso
  530. S.SoundId = "rbxassetid://155074440"
  531. S.Volume = 10
  532. S.Looped = false
  533. S.Pitch = 1
  534. S.TimePosition = 0.4
  535. S:Play()
  536. wait(6)
  537. talking = false
  538. end end)
  539.  
  540. mouse.KeyDown:connect(function(key)
  541. if key == "t" and transform == false and talking == false then
  542. talking = true
  543. S = Instance.new("Sound")
  544. S.Parent = Character.Torso
  545. S.SoundId = "rbxassetid://494478995"
  546. S.Volume = 10
  547. S.Looped = false
  548. S.Pitch = 1
  549. S:Play()
  550. wait(5.04)
  551. talking = false
  552. end end)
  553.  
  554. q1=Instance.new('ParticleEmitter',Head)
  555. q1.Rate = 500
  556. q1.Speed = NumberRange.new(7)
  557. q1.VelocitySpread = 0
  558. q1.EmissionDirection = "Front"
  559. q1.Lifetime = NumberRange.new(0.1,1)
  560. q1.Texture = 'rbxassetid://164417280'
  561. q1.Acceleration = Vector3.new(0,-50,0)
  562. q1.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.1), NumberSequenceKeypoint.new(1, 0.01, 0.01)})
  563. q1.RotSpeed = NumberRange.new(-180, 180)
  564. q1.Rotation = NumberRange.new(-360, 360)
  565. q1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  566. q1.Enabled = false
  567.  
  568. mouse.KeyDown:connect(function(key)
  569. if key == "f" and transform == true then
  570. S = Instance.new("Sound")
  571. S.Parent = Character.Torso
  572. S.SoundId = "rbxassetid://176850421"
  573. S.Volume = 10
  574. S.Looped = false
  575. S.Pitch = 1
  576. S:Play()
  577. end end)
  578.  
  579. toggle = false
  580.  
  581. mouse.KeyDown:connect(function(key)
  582. if key == "f" and transform == false and talking == false then
  583. talking = true
  584. S = Instance.new("Sound")
  585. S.Parent = Character.Torso
  586. S.SoundId = "rbxassetid://1765588386"
  587. S.Volume = 10
  588. S.Looped = false
  589. S.Pitch = 1
  590. S:Play()
  591. wait(18.5)
  592. talking = false
  593. end end)
  594.  
  595. mouse.KeyDown:connect(function(key)
  596. if key == "j" and transform == false and talking == false then
  597. talking = true
  598. S = Instance.new("Sound")
  599. S.Parent = Character.Torso
  600. S.SoundId = "rbxassetid://936161138"
  601. S.Volume = 10
  602. S.Looped = false
  603. S.Pitch = 1
  604. S:Play()
  605. wait(24.73)
  606. talking = false
  607. end end)
  608.  
  609. mouse.KeyDown:connect(function(key)
  610. if key == "k" and transform == false and talking == false then
  611. talking = true
  612. S = Instance.new("Sound")
  613. S.Parent = Character.Torso
  614. S.SoundId = "rbxassetid://936159847"
  615. S.Volume = 10
  616. S.Looped = false
  617. S.Pitch = 1
  618. S:Play()
  619. wait(27.22)
  620. talking = false
  621. end end)
  622.  
  623. mouse.KeyDown:connect(function(key)
  624. if key == "l" and transform == false and talking == false then
  625. talking = true
  626. S = Instance.new("Sound")
  627. S.Parent = Character.Torso
  628. S.SoundId = "rbxassetid://936162120"
  629. S.Volume = 10
  630. S.Looped = false
  631. S.Pitch = 1
  632. S:Play()
  633. wait(25.3)
  634. talking = false
  635. end end)
  636.  
  637. mouse.KeyDown:connect(function(key)
  638. if transform == true then
  639.  
  640.  
  641. if key == "x" then
  642. if coughing == false then
  643. coughing = true
  644. HoodMesh.MeshId = "http://www.roblox.com/asset/?id=13520910"
  645. HoodMesh.TextureId = "http://www.roblox.com/asset/?id=1772096775"
  646. q1.Enabled = true
  647. ZZ = Instance.new("Sound")
  648. ZZ.Parent = Character.Torso
  649. ZZ.SoundId = "rbxassetid://244502094"
  650. ZZ.Volume = 10
  651. ZZ.Looped = true
  652. ZZ.Pitch = 1
  653. ZZ:Play()
  654. ZZ2 = Instance.new("Sound")
  655. ZZ2.Parent = Character.Torso
  656. ZZ2.SoundId = "rbxassetid://300046017"
  657. ZZ2.Volume = 2
  658. ZZ2.Looped = true
  659. ZZ2.Pitch = 1
  660. ZZ2:Play()
  661. elseif coughing == true then
  662. coughing = false
  663. HoodMesh.MeshId = "http://www.roblox.com/asset/?id=13520257"
  664. HoodMesh.TextureId = "http://www.roblox.com/asset/?id=558227098"
  665. ZZ:Destroy()
  666. ZZ2:Destroy()
  667. q1.Enabled = false
  668. end
  669. end
  670.  
  671.  
  672. end
  673. end)
  674.  
  675. mouse.KeyDown:connect(function(key)
  676. if key == "m" and talking == false then
  677. talking = true
  678. S = Instance.new("Sound")
  679. S.Parent = Character.Torso
  680. S.SoundId = "rbxassetid://1766163151"
  681. S.Volume = 10
  682. S.Looped = false
  683. S.Pitch = 1
  684. S:Play()
  685. wait(2.38)
  686. talking = false
  687. end end)
  688.  
  689. mouse.KeyDown:connect(function(key)
  690. if key == "n" and talking == false then
  691. talking = true
  692. S = Instance.new("Sound")
  693. S.Parent = Character.Torso
  694. S.SoundId = "rbxassetid://1766162663"
  695. S.Volume = 10
  696. S.Looped = false
  697. S.Pitch = 1
  698. S:Play()
  699. wait(4.13)
  700. talking = false
  701. end end)
  702.  
  703. function findCloseHumanoid(centre, distance)
  704. local tab = {}
  705. for _, child in pairs(game.Workspace:GetChildren()) do
  706. if child:findFirstChild("Humanoid") and child:findFirstChild("Humanoid") ~= Humanoid and child:findFirstChild("Torso") then
  707. local vtors = child.Torso
  708. local mag = math.abs((vtors.Position - centre).magnitude)
  709. if distance >= mag then
  710. table.insert(tab, child.Humanoid)
  711. end
  712. end
  713. end
  714. return tab
  715. end
  716.  
  717.  
  718. function onTouch(part)
  719.  
  720. local humanoid = part.Parent:findFirstChild("Humanoid")
  721. local model = part.Parent
  722. local torso = part.Parent:findFirstChild("Torso")
  723. local head = part.Parent:findFirstChild("Head")
  724. local leftleg = part.Parent:findFirstChild("Left Leg")
  725. local rightleg = part.Parent:findFirstChild("Right Leg")
  726. local leftarm = part.Parent:findFirstChild("Left Arm")
  727. local rightarm = part.Parent:findFirstChild("Right Arm")
  728. if humanoid.Health <= 0 then
  729. return
  730. end
  731. if transform == false then
  732. return
  733. end
  734.  
  735. for i, v in pairs(findCloseHumanoid(Torso.Position, 10)) do
  736. humanoid.Health = 0
  737. head.BrickColor = BrickColor.new("Really black")
  738. torso.BrickColor = BrickColor.new("Really black")
  739. leftleg.BrickColor = BrickColor.new("Really black")
  740. rightleg.BrickColor = BrickColor.new("Really black")
  741. rightarm.BrickColor = BrickColor.new("Really black")
  742. leftarm.BrickColor = BrickColor.new("Really black")
  743. torso.Anchored = true
  744.  
  745. e=Instance.new('Part', model)
  746. e.Size = Vector3.new(2.25,2.25,2.25)
  747. e.Transparency = 1
  748. e.Anchored = true
  749. e.CFrame = CFrame.new(head.Position)
  750.  
  751.  
  752. q=Instance.new('ParticleEmitter', e)
  753. q.Rate = 500
  754. q.Speed = NumberRange.new(7)
  755. q.VelocitySpread = 40
  756. q.Lifetime = NumberRange.new(0.1,1)
  757. q.Texture = 'rbxassetid://164417280'
  758. q.Acceleration = Vector3.new(0,-50,0)
  759. q.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.1), NumberSequenceKeypoint.new(1, 0.01, 0.01)})
  760. q.RotSpeed = NumberRange.new(-180, 180)
  761. q.Rotation = NumberRange.new(-360, 360)
  762. q.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  763.  
  764. torso.Anchored = true
  765. rightleg.Anchored = true
  766. leftleg.Anchored = true
  767. rightarm.Anchored = true
  768. leftarm.Anchored = true
  769. ded = Instance.new("Sound")
  770. ded.Parent = torso
  771. ded.SoundId = "rbxassetid://658228911"
  772. ded.Volume = 3
  773. ded.Looped = false
  774. wait()
  775. ded:Play()
  776. end
  777.  
  778. end
  779.  
  780.  
  781.  
  782. Character.Torso.Touched:connect(onTouch)
  783.  
  784. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position, Direction, MaxDistance, IgnoreDescendants
  785. return game:GetService("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  786. end
  787.  
  788. function QuaternionFromCFrame(cf)
  789. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  790. local trace = m00 + m11 + m22
  791. if trace > 0 then
  792. local s = math.sqrt(1 + trace)
  793. local recip = 0.5/s
  794. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  795. else
  796. local i = 0
  797. if m11 > m00 then
  798. i = 1
  799. end
  800. if m22 > (i == 0 and m00 or m11) then
  801. i = 2
  802. end
  803. if i == 0 then
  804. local s = math.sqrt(m00-m11-m22+1)
  805. local recip = 0.5/s
  806. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  807. elseif i == 1 then
  808. local s = math.sqrt(m11-m22-m00+1)
  809. local recip = 0.5/s
  810. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  811. elseif i == 2 then
  812. local s = math.sqrt(m22-m00-m11+1)
  813. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  814. end
  815. end
  816. end
  817.  
  818. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  819. local xs, ys, zs = x + x, y + y, z + z
  820. local wx, wy, wz = w*xs, w*ys, w*zs
  821. local xx = x*xs
  822. local xy = x*ys
  823. local xz = x*zs
  824. local yy = y*ys
  825. local yz = y*zs
  826. local zz = z*zs
  827. 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))
  828. end
  829.  
  830. function QuaternionSlerp(a, b, t)
  831. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  832. local startInterp, finishInterp;
  833. if cosTheta >= 0.0001 then
  834. if (1 - cosTheta) > 0.0001 then
  835. local theta = math.acos(cosTheta)
  836. local invSinTheta = 1/math.sin(theta)
  837. startInterp = math.sin((1-t)*theta)*invSinTheta
  838. finishInterp = math.sin(t*theta)*invSinTheta
  839. else
  840. startInterp = 1-t
  841. finishInterp = t
  842. end
  843. else
  844. if (1+cosTheta) > 0.0001 then
  845. local theta = math.acos(-cosTheta)
  846. local invSinTheta = 1/math.sin(theta)
  847. startInterp = math.sin((t-1)*theta)*invSinTheta
  848. finishInterp = math.sin(t*theta)*invSinTheta
  849. else
  850. startInterp = t-1
  851. finishInterp = t
  852. end
  853. end
  854. 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
  855. end
  856.  
  857. function clerp(a, b, t)
  858. local qa = {QuaternionFromCFrame(a)}
  859. local qb = {QuaternionFromCFrame(b)}
  860. local ax, ay, az = a.x, a.y, a.z
  861. local bx, by, bz = b.x, b.y, b.z
  862. local _t = 1-t
  863. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  864. end
  865.  
  866. swait()
  867. LA_Weld = newWeld(Torso, Left_Arm, -1.5, 0.5, 0)
  868. Left_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
  869. RA_Weld = newWeld(Torso, Right_Arm, 1.5, 0.5, 0)
  870. Right_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
  871. LL_Weld = newWeld(Torso, Left_Leg, -0.5, -1, 0)
  872. Left_Leg.Weld.C1 = CFrame.new(0, 1, 0) -- Left_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
  873. RL_Weld = newWeld(Torso, Right_Leg, 0.5, -1, 0)
  874. Right_Leg.Weld.C1 = CFrame.new(0, 1, 0) -- Right_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
  875. Torso_Weld = newWeld(rootPart, Torso, 0, -1, 0)
  876. Torso.Weld.C1 = CFrame.new(0, -1, 0)
  877. Head_Weld = newWeld(Torso, Head, 0, 1.5, 0)
  878.  
  879. for i,v in pairs(Character:GetChildren()) do
  880. if v:IsA('Accoutrement') or v:IsA('Shirt') or v:IsA('Pants') then
  881. v:Destroy()
  882. end
  883. end
  884.  
  885. Head.face.Texture = "rbxassetid://141728515"
  886. Head.face.Color3 = Color3.new(0,0,0)
  887.  
  888. shirt = Instance.new("Shirt",Character)
  889. pants = Instance.new("Pants",Character)
  890. wait()
  891. shirt.ShirtTemplate = "rbxassetid://120471954"
  892. pants.PantsTemplate = "rbxassetid://120471978"
  893.  
  894. Character['Body Colors'].HeadColor=BrickColor.new('Linen')
  895. Character['Body Colors'].TorsoColor=BrickColor.new('Linen')
  896. Character['Body Colors'].RightArmColor=BrickColor.new('Linen')
  897. Character['Body Colors'].LeftArmColor=BrickColor.new('Linen')
  898. Character['Body Colors'].RightLegColor=BrickColor.new('Linen')
  899. Character['Body Colors'].LeftLegColor=BrickColor.new('Linen')
  900.  
  901. Humanoid.DisplayDistanceType='None'
  902.  
  903. sine = 0
  904. change = 1
  905. sprint=false
  906. local punches={
  907. a=false,
  908. b=false,
  909. c=false
  910. }
  911.  
  912. UIService.InputBegan:connect(function(Input,GUIProcessed)
  913. if not GUIProcessed and Input.UserInputType==Enum.UserInputType.MouseButton1 then
  914. if punches.a==false then
  915. punches.a=true wait(.4) punches.a=false
  916. else
  917. punches.a=true
  918. print('a ',punches.a)
  919. if punches.b==false then
  920. punches.b=true wait(.4) punches.b=false
  921. else
  922. punches.b=true
  923. print('b ',punches.b)
  924. if punches.c==false then
  925. punches.c=true wait(.4) punches.c=false
  926. else
  927. punches.c=true
  928. print('c ',punches.c)
  929. print('a ',punches.a,'b ',punches.b,'c ',punches.c)
  930. end
  931. end
  932. end
  933. elseif not GUIProcessed and Input.KeyCode==Enum.KeyCode.LeftShift and transform == true then
  934. sprint=true
  935. end
  936. end)
  937.  
  938. UIService.InputEnded:connect(function(Input,GUIProcessed)
  939. if not GUIProcessed and Input.KeyCode==Enum.KeyCode.LeftShift then
  940. sprint=false
  941. end
  942. end)
  943.  
  944. Humanoid.Died:connect(function()
  945. q.Enabled = true
  946. S = Instance.new("Sound")
  947. S.Parent = Character.Torso
  948. S.SoundId = "rbxassetid://891043624"
  949. S.Volume = 10
  950. S.Looped = false
  951. S.Pitch = 1
  952. S:Play()
  953. S = Instance.new("Sound")
  954. S.Parent = Character.Torso
  955. S.SoundId = "rbxassetid://429400881"
  956. S.Volume = 5
  957. S.Looped = false
  958. S.Pitch = 1
  959. S:Play()
  960. end)
  961.  
  962. game:GetService("RunService").RenderStepped:connect(function()
  963. Angle = (Angle % 100) + angleSpeed/10
  964. Axis = (Axis % 100) + axisSpeed/10
  965. walkingMagnitude = Vector3.new(rootPart.Velocity.X, 0, rootPart.Velocity.Z).magnitude
  966. jumpVel = Torso.Velocity.Y
  967. sine = change + sine
  968.  
  969. if(Humanoid.Jump) and jumpVel > 1 then
  970. currentAnim = "Jumping"
  971. elseif walkingMagnitude < 2 then
  972. currentAnim = "Idling"
  973. elseif isSprinting == true then
  974. currentAnim = "Sprinting"
  975. elseif walkingMagnitude > 2 then
  976. currentAnim = "Walking"
  977. elseif isAttacking == true then
  978. currentAnim = "Attacking"
  979. end
  980.  
  981. if currentAnim == "Jumping" and Animations == false then
  982. angleSpeed = 2
  983. axisSpeed = 2
  984. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  985. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  986. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  987. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  988. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  989. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  990. elseif currentAnim == "Idling" and Animations == false then
  991. if coughing == false and talking == false then
  992. angleSpeed = 1
  993. axisSpeed = 1
  994. change = 0.5
  995. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), -math.sin((rootPart.RotVelocity.X/10))/-2, math.sin((-rootPart.RotVelocity.Y/10))/-2), 0.15)
  996. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.X/10))/2, -math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
  997. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), -math.sin((rootPart.RotVelocity.X/10))/-2, math.sin((-rootPart.RotVelocity.Y/10))/-2), 0.15)
  998. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.X/10))/2, -math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
  999. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  1000. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
  1001. elseif coughing == true then
  1002. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1, 0.5, -0.1) * c_angles(math.rad(150), -math.sin((rootPart.RotVelocity.X/10))/-2, math.rad(-55)), 0.15)
  1003. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5, -0.1) * c_angles(math.rad(150), math.sin((rootPart.RotVelocity.X/10))/2, math.rad(55)), 0.15)
  1004. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), -math.sin((rootPart.RotVelocity.X/10))/-2, math.sin((-rootPart.RotVelocity.Y/10))/-2), 0.15)
  1005. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.X/10))/2, -math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
  1006. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  1007. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.4, 0.5) * c_angles(math.rad(45), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
  1008. elseif talking == true and coughing == false then
  1009. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), -math.sin((rootPart.RotVelocity.X/10))/-2, math.sin((-rootPart.RotVelocity.Y/10))/-2), 0.15)
  1010. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.X/10))/2, -math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
  1011. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), -math.sin((rootPart.RotVelocity.X/10))/-2, math.sin((-rootPart.RotVelocity.Y/10))/-2), 0.15)
  1012. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.X/10))/2, -math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
  1013. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  1014. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(-math.sin(sine/1.5)/20, math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
  1015. end
  1016. elseif currentAnim == "Walking" and Animations == false then
  1017. if sprint==false then
  1018. if coughing == false and talking == false then
  1019. angleSpeed = 1
  1020. axisSpeed = 1
  1021. Humanoid.WalkSpeed = 10
  1022. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(-math.sin(sine/4)/8, -math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(5)), 0.15)
  1023. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.sin(sine/4)/8, math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(-5)), 0.15)
  1024. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/3, math.sin((rootPart.RotVelocity.Y/10))/2, -math.sin((rootPart.RotVelocity.Y/10))/2), 0.15)
  1025. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/3, -math.sin((rootPart.RotVelocity.Y/10))/2, math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
  1026. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  1027. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
  1028. elseif coughing == true then
  1029. Humanoid.WalkSpeed = 3
  1030. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.2, 0.6, -0.1) * c_angles(math.rad(90), -math.sin((rootPart.RotVelocity.X/10))/-2, math.rad(-60)), 0.15)
  1031. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.2, 0.6, -0.1) * c_angles(math.rad(90), math.sin((rootPart.RotVelocity.X/10))/2, math.rad(60)), 0.15)
  1032. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/3, math.sin((rootPart.RotVelocity.Y/10))/2, -math.sin((rootPart.RotVelocity.Y/10))/2), 0.05)
  1033. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/3, -math.sin((rootPart.RotVelocity.Y/10))/2, math.sin((-rootPart.RotVelocity.Y/10))/2), 0.05)
  1034. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  1035. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.4, -0.5) * c_angles(math.rad(-45), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
  1036. elseif coughing == false and talking == true then
  1037. Humanoid.WalkSpeed = 10
  1038. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(-math.sin(sine/4)/8, -math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(5)), 0.15)
  1039. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.sin(sine/4)/8, math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(-5)), 0.15)
  1040. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/3, math.sin((rootPart.RotVelocity.Y/10))/2, -math.sin((rootPart.RotVelocity.Y/10))/2), 0.15)
  1041. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/3, -math.sin((rootPart.RotVelocity.Y/10))/2, math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
  1042. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  1043. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(-math.sin(sine/1.5)/20, math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
  1044. end
  1045. else
  1046. if coughing == false and talking == false then
  1047. angleSpeed = 10
  1048. axisSpeed = 10
  1049. Humanoid.WalkSpeed = 20
  1050. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.55, -0.2) * c_angles(math.rad(90),-math.sin((rootPart.RotVelocity.X/80))/-2, math.sin((rootPart.RotVelocity.Y/2.5))/-2), 0.15)
  1051. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15)
  1052. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/2, math.sin((rootPart.RotVelocity.Y/10))/1, -math.sin((rootPart.RotVelocity.Y/10))/1), 0.4)
  1053. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/2, -math.sin((rootPart.RotVelocity.Y/10))/1, math.sin((-rootPart.RotVelocity.Y/10))/1), 0.4)
  1054. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  1055. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(-0.1, 1.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(10)), 0.15)
  1056. elseif coughing == true then
  1057. Humanoid.WalkSpeed = 8
  1058. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.55, 0) * c_angles(math.rad(-10), -math.sin((rootPart.RotVelocity.X/80))/2, math.sin((rootPart.RotVelocity.Y/2.5))/2), 0.15)
  1059. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.9, -0.1) * c_angles(math.rad(100), math.rad(50), math.rad(50)), 0.15)
  1060. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/2, math.sin((rootPart.RotVelocity.Y/10))/1, -math.sin((rootPart.RotVelocity.Y/10))/1), 0.1)
  1061. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/2, -math.sin((rootPart.RotVelocity.Y/10))/1, math.sin((-rootPart.RotVelocity.Y/10))/1), 0.1)
  1062. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  1063. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(-0.1, 1.5, -0.2) * c_angles(math.rad(-30), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(10)), 0.15)
  1064. elseif coughing == false and talking == true then
  1065. Humanoid.WalkSpeed = 20
  1066. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.55, -0.2) * c_angles(math.rad(90),-math.sin((rootPart.RotVelocity.X/80))/-2, math.sin((rootPart.RotVelocity.Y/2.5))/-2), 0.15)
  1067. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15)
  1068. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/2, math.sin((rootPart.RotVelocity.Y/10))/1, -math.sin((rootPart.RotVelocity.Y/10))/1), 0.4)
  1069. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/2, -math.sin((rootPart.RotVelocity.Y/10))/1, math.sin((-rootPart.RotVelocity.Y/10))/1), 0.4)
  1070. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  1071. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(-0.1, 1.5, 0) * c_angles(-math.sin(sine/1.5)/20, math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(10)), 0.15)
  1072. end
  1073. end
  1074. end
  1075. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement