Advertisement
HenloMyDude

nostalgia :'(

Jul 13th, 2019
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.79 KB | None | 0 0
  1. print("Welcome to old roblox?")
  2.  
  3.  
  4. forcefield = Instance.new("ForceField")
  5. forcefield.Visible = false
  6. forcefield.Parent = owner.Character
  7.  
  8. local plr = owner
  9. local char = plr.Character
  10. local hum = char:FindFirstChildOfClass("Humanoid")
  11. wait(0.1)
  12. local remote = Instance.new("RemoteEvent", char)
  13. remote.Name = "ReplicationEvent"
  14. local client = NLS([==[
  15. local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  16. local remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
  17. spawn(function()
  18. while game:GetService("RunService").Heartbeat:Wait() do
  19. remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
  20. end
  21. end)
  22. game:GetService("UserInputService").InputBegan:Connect(function(input, isTyping)
  23. if isTyping == false and input.UserInputType == Enum.UserInputType.Keyboard then
  24. remote:FireServer(1, input.KeyCode)
  25. end
  26. end)
  27. mouse.Button1Down:Connect(function()
  28. remote:FireServer(2)
  29. end)
  30. remote.OnClientEvent:Connect(function()
  31. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position, Vector3.new(mouse.Hit.Position.X, game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.Y, mouse.Hit.Position.Z))
  32. end)
  33. ]==], char)
  34.  
  35. Torso = char.Torso
  36.  
  37. local RS = char.Torso["Right Shoulder"]
  38. local LS = char.Torso["Left Shoulder"]
  39. local RH = char.Torso["Right Hip"]
  40. local LH = char.Torso["Left Hip"]
  41. local rootj = char.HumanoidRootPart.RootJoint
  42. local throwbutton = false
  43. local throw = false
  44. local normalanim = true
  45. local attackd = false
  46. local animpose = "Idle"
  47. local timepos = 0
  48. local sine = 0
  49. local RSnor = RS.C0
  50. local LSnor = LS.C0
  51. local RHnor = RH.C0
  52. local LHnor = LH.C0
  53. local rootjnor = rootj.C0
  54.  
  55. for _,v in pairs (char:children()) do
  56. if v:IsA("Part") then v.CanCollide = true end
  57. end
  58. hum.Animator:Destroy()
  59.  
  60. if char:FindFirstChild("Head") then
  61. if char.Head:FindFirstChild("face") ~= nil then
  62. face = char.Head:FindFirstChild("face")
  63. face.Texture = "rbxassetid://3248568733"
  64. face.Parent.Mesh.MeshType = "FileMesh"
  65. face.Parent.Mesh.MeshId = "rbxassetid://1068249467"
  66. end
  67. for i,v in pairs(char:GetChildren()) do
  68. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "Accessory" or v.ClassName == "CharacterMesh" or v.ClassName == "Shirt Graphic" then
  69. v:Remove()
  70. end
  71. if v.ClassName == "BodyColors" then
  72. v.HeadColor = BrickColor.new("Bright yellow")
  73. v.LeftArmColor = BrickColor.new("Bright yellow")
  74. v.LeftLegColor = BrickColor.new("Br. yellowish green")
  75. v.RightArmColor = BrickColor.new("Bright yellow")
  76. v.RightLegColor = BrickColor.new("Br. yellowish green")
  77. v.TorsoColor = BrickColor.Random()
  78. local Shirt = Instance.new("Shirt",face.Parent.Parent)
  79. Shirt.ShirtTemplate = "rbxassetid://1110695025"
  80. local Pants = Instance.new("Pants",face.Parent.Parent)
  81. Pants.PantsTemplate = "rbxassetid://1110798365"
  82. local TShirt = Instance.new("ShirtGraphic",face.Parent.Parent)
  83. TShirt.Graphic = "rbxassetid://2650823790"
  84. local TorsMesh = Instance.new("CharacterMesh", face.Parent.Parent)
  85. TorsMesh.BodyPart = "Torso"
  86. TorsMesh.MeshId = 1112228624
  87. local RAMesh = Instance.new("CharacterMesh", face.Parent.Parent)
  88. RAMesh.BodyPart = "RightArm"
  89. RAMesh.MeshId = 1112244824
  90. local LAMesh = Instance.new("CharacterMesh", face.Parent.Parent)
  91. LAMesh.BodyPart = "LeftArm"
  92. LAMesh.MeshId = 1112256772
  93. local RLMesh = Instance.new("CharacterMesh", face.Parent.Parent)
  94. RLMesh.BodyPart = "RightLeg"
  95. RLMesh.MeshId = 1112267576
  96. local LLMesh = Instance.new("CharacterMesh", face.Parent.Parent)
  97. LLMesh.BodyPart = "LeftLeg"
  98. LLMesh.MeshId = 1112275294
  99. end
  100. if v.ClassName == "Part" then
  101. if v.Name == "Head" or v.Name == "FalseHead" then
  102. v.BrickColor = BrickColor.new("Bright yellow")
  103. else
  104. v.BrickColor = BrickColor.new("Bright yellow")
  105. end
  106. end
  107. end
  108. end
  109. hold = false
  110. slash = false
  111. while game:GetService("RunService").Heartbeat:Wait() do
  112. if normalanim then
  113. sine = sine + 1
  114. end
  115. if remote.Parent == char then
  116. remote.Name = "ReplicationEvent"
  117. else
  118. remote = Instance.new("RemoteEvent", char)
  119. end
  120. for i,v in pairs (char:GetChildren()) do
  121. if v:IsA("Tool") then
  122. hold = true
  123. for i,v in pairs (v:children()) do
  124. if v:IsA("StringValue") and v.Name == "toolanim" and v.Value == "Slash" then
  125. slash = true
  126. hold = true
  127. coroutine.wrap(function()
  128. slash = true
  129. wait(.15)
  130. slash = false
  131. end)()
  132. end
  133. end
  134. elseif not v:IsA("Tool") then
  135. hold = false
  136. end
  137. end
  138. local touchfloor = workspace:FindPartOnRay(Ray.new(char.HumanoidRootPart.CFrame.Position, ((CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.Position - Vector3.new(0, 1, 0))).LookVector).Unit * 4), char)
  139. if char.HumanoidRootPart.Velocity.Magnitude > 1 and touchfloor then
  140. animpose = "Walking"
  141. elseif char.HumanoidRootPart.Velocity.Y > 0.5 and touchfloor == nil then
  142. animpose = "Jumping"
  143. elseif char.HumanoidRootPart.Velocity.Y < 0.5 and touchfloor == nil then
  144. animpose = "Falling"
  145. else
  146. animpose = "Idle"
  147. end
  148. if animpose == "Idle" and normalanim then
  149. if hold == false then
  150. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, 0.2 * math.sin(sine / 28)), 0.6)
  151. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, 0, 0.2 * math.sin(sine / 28)), 0.6)
  152. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, -0.2 * math.sin(sine / 28)), 0.6)
  153. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, -0.2 * math.sin(sine / 28)), 0.6)
  154. rootj.C0 = rootjnor * CFrame.new(0, 0, 0)
  155. elseif hold == true then
  156. if slash == false then
  157. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, math.rad(90)), 0.7)
  158. LS.C0 = LSnor * CFrame.Angles(0, 0, 0)
  159. RH.C0 = RH.C0:Lerp(RHnor, 0.1) - Vector3.new(0, 0, 0)
  160. LH.C0 = LH.C0:Lerp(LHnor, 0.1) - Vector3.new(0, 0, 0)
  161. rootj.C0 = rootjnor * CFrame.new(0, 0, 0)
  162. elseif slash == true then
  163. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, 0), 0.7)
  164. LS.C0 = LSnor * CFrame.Angles(0, 0, 0)
  165. RH.C0 = RH.C0:Lerp(RHnor, 0.1) - Vector3.new(0, 0, 0)
  166. LH.C0 = LH.C0:Lerp(LHnor, 0.1) - Vector3.new(0, 0, 0)
  167. rootj.C0 = rootjnor * CFrame.new(0, 0, 0)
  168. end
  169. end
  170. elseif animpose == "Walking" and normalanim then
  171. if hold == false then
  172. RS.C0 = RSnor * CFrame.Angles(0, 0, -math.sin(sine / 8)), 0.1
  173. LS.C0 = LSnor * CFrame.Angles(0, 0, -math.sin(sine / 8)), 0.1
  174. RH.C0 = RHnor * CFrame.Angles(0, 0, math.sin(sine / 8)), 0.1
  175. LH.C0 = LHnor * CFrame.Angles(0, 0, math.sin(sine / 8)), 0.1
  176. rootj.C0 = rootjnor * CFrame.new(0, 0, 0)
  177. elseif hold == true then
  178. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, math.rad(90)), 0.7)
  179. LS.C0 = LSnor * CFrame.Angles(0, 0, -math.sin(sine / 8)), 0.1
  180. RH.C0 = RHnor * CFrame.Angles(0, 0, math.sin(sine / 8)), 0.1
  181. LH.C0 = LHnor * CFrame.Angles(0, 0, math.sin(sine / 8)), 0.1
  182. rootj.C0 = rootjnor * CFrame.new(0, 0, 0)
  183. end
  184. elseif animpose == "Jumping" and normalanim then
  185. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0, 0, 0), 0.15)
  186. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, 80 + 80), 0.15)
  187. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, 0, 80 + 80), 0.15)
  188. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  189. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  190. elseif animpose == "Falling" and normalanim then
  191. rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0, 0, 0), 0.15)
  192. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, 80 + 80), 0.15)
  193. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, 0, 80 + 80), 0.15)
  194. RH.C0 = RH.C0:Lerp(RHnor, 0.15)
  195. LH.C0 = LH.C0:Lerp(LHnor, 0.15)
  196. end
  197. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement