GETFREEROBUX

Fe cursed spider

Feb 10th, 2022
2,809
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.93 KB | None | 0 0
  1. --Koblins Obamium Spider
  2. -- Made by using some animation tools
  3.  
  4. HumanDied = false
  5. local reanim
  6. local te
  7. local ct
  8. local m
  9. function noplsmesh(hat)
  10. _G.OldCF=workspace.Camera.CFrame
  11. oldchar=game.Players.LocalPlayer.Character
  12. game.Players.LocalPlayer.Character=workspace[game.Players.LocalPlayer.Name]
  13. for i,v in next, workspace[game.Players.LocalPlayer.Name][hat]:GetDescendants() do
  14. if v:IsA('Mesh') or v:IsA('SpecialMesh') then
  15. v:Remove()
  16. end
  17. end
  18. game.Players.LocalPlayer.Character=oldchar
  19. wait()
  20. workspace.Camera.CFrame=_G.OldCF
  21. game.Players.LocalPlayer.Character=oldchar
  22. end
  23. loadstring(game:HttpGet(('https://raw.githubusercontent.com/XeneonPlays/Nexo/main/NexoReanimate'),true))()
  24.  
  25. IT = Instance.new
  26. CF = CFrame.new
  27. VT = Vector3.new
  28. RAD = math.rad
  29. C3 = Color3.new
  30. UD2 = UDim2.new
  31. BRICKC = BrickColor.new
  32. ANGLES = CFrame.Angles
  33. EULER = CFrame.fromEulerAnglesXYZ
  34. COS = math.cos
  35. ACOS = math.acos
  36. SIN = math.sin
  37. ASIN = math.asin
  38. ABS = math.abs
  39. MRANDOM = math.random
  40. FLOOR = math.floor
  41.  
  42. speed = 1
  43. sine = 1
  44. srv = game:GetService('RunService')
  45.  
  46. function hatset(yes,part,c1,c0,nm)
  47. reanim[yes].Handle.AccessoryWeld.Part1=reanim[part]
  48. reanim[yes].Handle.AccessoryWeld.C1=c1 or CFrame.new()
  49. reanim[yes].Handle.AccessoryWeld.C0=c0 or CFrame.new()--3bbb322dad5929d0d4f25adcebf30aa5
  50. if nm==true then
  51. noplsmesh(yes)
  52. end
  53. end
  54.  
  55. --put the hat script converted below
  56.  
  57. reanim = game.Players.LocalPlayer.Character
  58. RJ = reanim.HumanoidRootPart.RootJoint
  59. RS = reanim.Torso['Right Shoulder']
  60. LS = reanim.Torso['Left Shoulder']
  61. RH = reanim.Torso['Right Hip']
  62. LH = reanim.Torso['Left Hip']
  63. Root = reanim.HumanoidRootPart
  64. NECK = reanim.Torso.Neck
  65. NECK.C0 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  66. NECK.C1 = CF(0,-0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  67. RJ.C1 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  68. RJ.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  69. RS.C1 = CF(-0.5,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  70. LS.C1 = CF(0.5,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  71. RH.C1 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  72. LH.C1 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  73. RH.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  74. LH.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  75. RS.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  76. LS.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  77.  
  78. Mode='1'
  79.  
  80. mousechanger=game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(k)
  81. if k == 'urkeybind' then-- first mode
  82. Mode='1'
  83. elseif k == 'urkeybind' then-- second mode
  84. Mode='2'
  85. elseif k == 'urkeybind' then-- third mode
  86. Mode='3'
  87. end
  88. end)
  89.  
  90. coroutine.wrap(function()
  91. while true do -- anim changer
  92. if HumanDied then mousechanger:Disconnect() break end
  93. sine = sine + speed
  94. local rlegray = Ray.new(reanim["Right Leg"].Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -2, 0))
  95. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
  96. local llegray = Ray.new(reanim["Left Leg"].Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -2, 0))
  97. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  98. local rightvector = (Root.Velocity * Root.CFrame.rightVector).X + (Root.Velocity * Root.CFrame.rightVector).Z
  99. local lookvector = (Root.Velocity * Root.CFrame.lookVector).X + (Root.Velocity * Root.CFrame.lookVector).Z
  100. if lookvector > reanim.Humanoid.WalkSpeed then
  101. lookvector = reanim.Humanoid.WalkSpeed
  102. end
  103. if lookvector < -reanim.Humanoid.WalkSpeed then
  104. lookvector = -reanim.Humanoid.WalkSpeed
  105. end
  106. if rightvector > reanim.Humanoid.WalkSpeed then
  107. rightvector = reanim.Humanoid.WalkSpeed
  108. end
  109. if rightvector < -reanim.Humanoid.WalkSpeed then
  110. rightvector = -reanim.Humanoid.WalkSpeed
  111. end
  112. local lookvel = lookvector / reanim.Humanoid.WalkSpeed
  113. local rightvel = rightvector / reanim.Humanoid.WalkSpeed
  114. if Mode == '1' then
  115. if Root.Velocity.y > 1 then -- jump
  116. --jump clerp here
  117. elseif Root.Velocity.y < -1 then -- fall
  118. --fall clerp here
  119. elseif Root.Velocity.Magnitude < 2 then -- idle
  120. --idle clerp here
  121. elseif Root.Velocity.Magnitude < 20 then -- walk
  122.     NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),0+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  123.     RJ.C0 = RJ.C0:Lerp(CF(0+1*math.cos(sine/13),0+1*math.cos(sine/13),0+1*math.cos(sine/13))*ANGLES(RAD(1+0*math.cos(sine/13)),RAD(1+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  124.     RS.C0 = RS.C0:Lerp(CF(1+0*math.cos(sine/13),0+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(-2+27*math.cos(sine/13)),RAD(-2+7*math.cos(sine/13)),RAD(30+0*math.cos(sine/13))),.3)
  125.     LS.C0 = LS.C0:Lerp(CF(-1+0*math.cos(sine/13),0+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+10*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(-24+5*math.cos(sine/13))),.3)
  126.     RH.C0 = RH.C0:Lerp(CF(2+0*math.cos(sine/8),-1+0*math.cos(sine/8),0+0*math.cos(sine/8))*ANGLES(RAD(0+41*math.cos(sine/8)),RAD(0+32*math.cos(sine/8)),RAD(0+32*math.cos(sine/8))),.3)
  127.     LH.C0 = LH.C0:Lerp(CF(-2+0*math.cos(sine/8),-1+0*math.cos(sine/8),0+0*math.cos(sine/8))*ANGLES(RAD(0+43*math.cos(sine/8)),RAD(0+36*math.cos(sine/8)),RAD(0+-11*math.cos(sine/8))),.3)
  128. elseif Root.Velocity.Magnitude > 20 then -- run
  129. --run clerp here
  130. end
  131. elseif Mode == '2' then
  132. if Root.Velocity.y > 1 then -- jump
  133. --jump clerp here
  134. elseif Root.Velocity.y < -1 then -- fall
  135. --fall clerp here
  136. elseif Root.Velocity.Magnitude < 2 then -- idle
  137. --idle clerp here
  138. elseif Root.Velocity.Magnitude < 20 then -- walk
  139. --walk clerp here
  140. elseif Root.Velocity.Magnitude > 20 then -- run
  141. --run clerp here
  142. end
  143. elseif Mode == '3' then
  144. if Root.Velocity.y > 1 then -- jump
  145. --jump clerp here
  146. elseif Root.Velocity.y < -1 then -- fall
  147. --fall clerp here
  148. elseif Root.Velocity.Magnitude < 2 then -- idle
  149. --idle clerp here
  150. elseif Root.Velocity.Magnitude < 20 then -- walk
  151. --walk clerp here
  152. elseif Root.Velocity.Magnitude > 20 then -- run
  153. --run clerp here
  154. end
  155. end
  156. srv.RenderStepped:Wait()
  157. end
  158. end)()
  159.  
  160. local Sound = Instance.new("Sound")
  161. Sound.Parent = game.Workspace
  162. Sound.SoundId = "rbxassetid://00"
  163. Sound.Looped = true
  164. Sound:Play()
Advertisement
Add Comment
Please, Sign In to add comment