Advertisement
subaru112g

nosense

Feb 4th, 2019
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.31 KB | None | 0 0
  1. local char = owner.Character
  2. char.Head.face.Transparency = 1
  3.  
  4. char.Animate:Destroy()
  5.  
  6. local mus = nil
  7.  
  8. local hum = char:FindFirstChildOfClass("Humanoid")
  9.  
  10. local idleanim = Instance.new("Animation")
  11. idleanim.Name = "Roblox Idle Animation"
  12. idleanim.AnimationId = "http://www.roblox.com/asset/?id=125750800"
  13.  
  14. hum.WalkSpeed = 20
  15.  
  16. mus = Instance.new("Sound",char.Torso)
  17. mus.SoundId = "rbxassetid://919231299"
  18. mus.Volume = 3
  19. mus.Looped = true
  20. mus:Play()
  21. mus.TimePosition = 55
  22.  
  23. for i,v in pairs(char:GetChildren()) do
  24. if v.ClassName == "CharacterMesh" or v.ClassName == "Shirt" or v.ClassName == "Pants" then
  25. v:Destroy()
  26. end
  27.  
  28. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  29. v.Material = "Glass"
  30. end
  31. end
  32.  
  33. wait(0.000000000001)
  34.  
  35. for i,v in pairs(char:GetChildren()) do
  36. if v.ClassName == "Accessory" or v.ClassName == "Hat" then
  37. v.Handle.BrickColor = BrickColor.new("Really black")
  38. v.Handle.Material = "Glass"
  39. for i,s in pairs(v.Handle:GetChildren()) do
  40. if s.ClassName == "SpecialMesh" then
  41. s.TextureId = ""
  42. end
  43. end
  44. end
  45. end
  46.  
  47. char["Body Colors"].HeadColor = BrickColor.new("Really black")
  48. char["Body Colors"].TorsoColor = BrickColor.new("Really black")
  49. char["Body Colors"].RightArmColor = BrickColor.new("Really black")
  50. char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
  51. char["Body Colors"].RightLegColor = BrickColor.new("Really black")
  52. char["Body Colors"].LeftLegColor = BrickColor.new("Really black")
  53.  
  54. --This script is made by Subaru112.
  55.  
  56. local plr = owner
  57. local char = plr.Character
  58. local hum = char:FindFirstChildOfClass("Humanoid")
  59. local remote = Instance.new("RemoteEvent", char)
  60. remote.Name = "ReplicationEvent"
  61. local client = NLS([==[
  62. local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  63. local remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
  64. spawn(function()
  65. while game:GetService("RunService").Heartbeat:Wait() do
  66. remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
  67. end
  68. end)
  69. game:GetService("UserInputService").InputBegan:Connect(function(input, isTyping)
  70. if isTyping == false and input.UserInputType == Enum.UserInputType.Keyboard then
  71. remote:FireServer(1, input.KeyCode)
  72. end
  73. end)
  74. mouse.Button1Down:Connect(function()
  75. remote:FireServer(2)
  76. end)
  77. remote.OnClientEvent:Connect(function()
  78. 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))
  79. end)
  80. ]==], char)
  81. local RS = char.Torso["Right Shoulder"]
  82. local LS = char.Torso["Left Shoulder"]
  83. local RH = char.Torso["Right Hip"]
  84. local LH = char.Torso["Left Hip"]
  85. local rootj = char.HumanoidRootPart.RootJoint
  86. local throwbutton = false
  87. local throw = false
  88. local normalanim = true
  89. local attackd = false
  90. local animpose = "Idle"
  91. local timepos = 0
  92. local sine = 0
  93. local RSnor = RS.C0
  94. local LSnor = LS.C0
  95. local RHnor = RH.C0
  96. local LHnor = LH.C0
  97. local rootjnor = rootj.C0
  98. local swing = nil
  99. local swing2 = nil
  100. swing = false
  101. swing2 = false
  102.  
  103. ---------------------------------
  104. --------------Set up-------------
  105. ---------------------------------
  106.  
  107. function onTouched(fire)
  108. if not(fire.Parent == char) then
  109. if swing2 == true then
  110. if fire.Parent.ClassName == "Model" then
  111. local hum = fire.Parent:FindFirstChildOfClass("Humanoid")
  112. if hum then
  113. hum:Destroy()
  114. end
  115. for i,v in pairs(fire.Parent:GetChildren()) do
  116.  
  117.  
  118. if v.ClassName == "MeshPart" or v.ClassName == "Part" then
  119. local del = math.random(1,3)
  120. v.CanCollide = true
  121. v:MakeJoints()
  122. v.Anchored = false
  123. v.Parent = workspace
  124. v.Velocity = Vector3.new(0, 10, 0) + char.HumanoidRootPart.CFrame.LookVector * 70
  125. v.BrickColor = BrickColor.new("Really red")
  126. v.Transparency = 0
  127. v.Material = "Neon"
  128. for i,d in pairs(v:GetChildren()) do
  129. if d.ClassName == "Decal" or d.ClassName == "SpecialMesh" or d.ClassName == "BlockMesh" or d.ClassName == "FileMesh" then
  130. d:Destroy()
  131. end
  132. end
  133.  
  134. end
  135. end
  136. end
  137. end
  138. end
  139. end
  140. char.Torso.Touched:connect(onTouched)
  141.  
  142. function onTouched(fire2)
  143. if not(fire2.Parent == char) then
  144. if swing == true then
  145. if fire2.Parent.ClassName == "Model" then
  146. local hum = fire2.Parent:FindFirstChildOfClass("Humanoid")
  147. if hum then
  148. hum:Destroy()
  149. end
  150. for i,v in pairs(fire2.Parent:GetChildren()) do
  151.  
  152.  
  153. if v.ClassName == "MeshPart" or v.ClassName == "Part" then
  154. v.CanCollide = true
  155. v:BreakJoints()
  156. v.Anchored = false
  157. v.Parent = workspace
  158. v.Velocity = Vector3.new(0, 270, 0)
  159. v.BrickColor = BrickColor.new("White")
  160. v.Transparency = 0.8
  161. v.Material = "Neon"
  162. for i,d in pairs(v:GetChildren()) do
  163. if d.ClassName == "Decal" or d.ClassName == "SpecialMesh" or d.ClassName == "BlockMesh" or d.ClassName == "FileMesh" then
  164. d:Destroy()
  165. end
  166. end
  167. end
  168. end
  169. end
  170. end
  171. end
  172. end
  173. char.Torso.Touched:connect(onTouched)
  174.  
  175. ---------------------------------
  176. -------------Attacks-------------
  177. ---------------------------------
  178.  
  179. remote.OnServerEvent:Connect(function(Player, number, key)
  180. if number == 1 and plr.Name == Player.Name and attackd == false then
  181. if key == Enum.KeyCode.Z then
  182. if swing == false and swing2 == false then
  183. swing = true
  184. wait(0.5)
  185. swing = false
  186. end
  187. end
  188. if key == Enum.KeyCode.X then
  189. if swing2 == false and swing == false then
  190. swing2 = true
  191. wait(0.5)
  192. swing2 = false
  193. end
  194. end
  195. if key == Enum.KeyCode.C then
  196. swing = false
  197. swing2 = false
  198. end
  199. elseif Player.Name == plr.Name and number == 2 and throw == true and throwbutton == true then
  200. throwbutton = false
  201. throw = false
  202. end
  203. end)
  204.  
  205. ---------------------------------
  206. -----------Wrapping up-----------
  207. ---------------------------------
  208.  
  209. while game:GetService("RunService").Heartbeat:Wait() do
  210. if normalanim then
  211. sine = sine + 1
  212. end
  213. if mus.TimePosition > 83 then
  214. mus.TimePosition = 55
  215. end
  216.  
  217. hum.Health = 9999999999999999
  218.  
  219. mus.Volume = 3
  220.  
  221. if not(mus.Parent == char.Torso) then
  222. mus = Instance.new("Sound",char.Torso)
  223. mus.SoundId = "rbxassetid://919231299"
  224. mus.Volume = 3
  225. mus.Looped = true
  226. mus:Play()
  227. mus.TimePosition = 50
  228. end
  229. if remote.Parent == char then
  230. remote.Name = "ReplicationEvent"
  231. else
  232. remote = Instance.new("RemoteEvent", char)
  233. end
  234. 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)
  235. if char.HumanoidRootPart.Velocity.Magnitude > 1 and touchfloor then
  236. animpose = "Walking"
  237. elseif char.HumanoidRootPart.Velocity.Y > 0.5 and touchfloor == nil then
  238. animpose = "Jumping"
  239. elseif char.HumanoidRootPart.Velocity.Y < 0.5 and touchfloor == nil then
  240. animpose = "Falling"
  241. else
  242. animpose = "Idle"
  243. end
  244. if animpose == "Idle" and normalanim then
  245.  
  246. char.Torso.Neck.C0 = char.Torso.Neck.C0:Lerp(char.Torso.Neck.C0 * CFrame.Angles(0, 0, math.sin(sine / 1)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 2, 0)
  247. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, math.sin(sine / 1)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 5, 0)
  248.  
  249. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, 0, math.sin(sine / 1)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 5, 0)
  250.  
  251. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, math.sin(sine / 1)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 5, 0)
  252.  
  253. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, math.sin(sine / 1)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 5, 0)
  254. elseif animpose == "Walking" and normalanim then
  255.  
  256. char.Torso.Neck.C0 = char.Torso.Neck.C0:Lerp(char.Torso.Neck.C0 * CFrame.Angles(0, 0, math.sin(sine / 1)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 2, 0)
  257. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, math.sin(sine / 3)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 20, 0)
  258.  
  259. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, 0, math.sin(sine / 3)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 20, 0)
  260.  
  261. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, math.sin(sine / 3)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 20, 0)
  262.  
  263. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, math.sin(sine / 3)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 20, 0)
  264. elseif animpose == "Jumping" and normalanim then
  265.  
  266. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, math.sin(sine / 1)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 5, 0)
  267.  
  268. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, 0, math.sin(sine / 1)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 5, 0)
  269.  
  270. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, math.sin(sine / 1)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 5, 0)
  271.  
  272. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, math.sin(sine / 1)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 5, 0)
  273. elseif animpose == "Falling" and normalanim then
  274.  
  275. RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, math.sin(sine / 1)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 5, 0)
  276.  
  277. LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, 0, math.sin(sine / 1)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 5, 0)
  278.  
  279. RH.C0 = RH.C0:Lerp(RHnor * CFrame.Angles(0, 0, math.sin(sine / 1)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 5, 0)
  280.  
  281. LH.C0 = LH.C0:Lerp(LHnor * CFrame.Angles(0, 0, math.sin(sine / 1)), 0.1) - Vector3.new(0, rootj.C0.Position.Y / 5, 0)
  282. end
  283. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement