Advertisement
TheYoutuber_Pro

test

Apr 16th, 2022 (edited)
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.67 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 local Player,game,owner = owner,game local RealPlayer = Player do local rp = RealPlayer script.Parent = rp.Character local Event = Instance.new("RemoteEvent") Event.Name = "UserInput_Event" local function fakeEvent() local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} t.connect = t.Connect return t end local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil end} CAS.UnbindAction = CAS.BindAction local function te(self,ev,...) local t = m[ev] if t and t._fakeEvent then for _,f in pairs(t.Functions) do f(...) end end end m.TrigEvent = te UIS.TrigEvent = te Event.OnServerEvent:Connect(function(plr,io) if plr~=rp then return end m.Target = io.Target m.Hit = io.Hit if not io.isMouse then local b = io.UserInputState == Enum.UserInputState.Begin if io.UserInputType == Enum.UserInputType.MouseButton1 then return m:TrigEvent(b and "Button1Down" or "Button1Up") end for _,t in pairs(CAS.Actions) do for _,k in pairs(t.Keys) do if k==io.KeyCode then t.Function(t.Name,io.UserInputState,io) end end end m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) end end) Event.Parent = NLS([==[ local Player = game:GetService("Players").LocalPlayer local Event = script:WaitForChild("UserInput_Event") local Mouse = Player:GetMouse() local UIS = game:GetService("UserInputService") local input = function(io,a) if a then return end Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) end UIS.InputBegan:Connect(input) UIS.InputEnded:Connect(input) local h,t while wait(1/30) do if h~=Mouse.Hit or t~=Mouse.Target then h,t=Mouse.Hit,Mouse.Target Event:FireServer({isMouse=true,Target=t,Hit=h}) end end]==],Player.Character) local _rg = game local fsmt = { __index = function(self,k) local s = rawget(self,"_RealService") if s then return s[k] end end, __newindex = function(self,k,v) local s = rawget(self,"_RealService") if s then s[k]=v end end, __call = function(self,...) local s = rawget(self,"_RealService") if s then return s(...) end end } local function FakeService(t,RealService) t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService return setmetatable(t,fsmt) end local g = { GetService = function(self,s) return self[s] end, Players = FakeService({ LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) },"Players"), UserInputService = FakeService(UIS,"UserInputService"), ContextActionService = FakeService(CAS,"ContextActionService"), } rawset(g.Players,"localPlayer",g.Players.LocalPlayer) g.service = g.GetService g.RunService = FakeService({ RenderStepped = _rg:GetService("RunService").Heartbeat, BindToRenderStep = function(self,name,_,fun) self._btrs[name] = self.Heartbeat:Connect(fun) end, UnbindFromRenderStep = function(self,name) self._btrs[name]:Disconnect() end, },"RunService") setmetatable(g,{ __index=function(self,s) return _rg:GetService(s) or typeof(_rg[s])=="function" and function(_,...)return _rg[s](_rg,...)end or _rg[s] end, __newindex = fsmt.__newindex, __call = fsmt.__call }) game,owner = g,g.Players.LocalPlayer end
  2.  
  3. local creatorId = game:GetService("Players"):GetPlayerByUserId(1019187771)
  4.  
  5. print("Yeeter by " .. creatorId.DisplayName .. " (@" .. creatorId.Name .. ")")
  6.  
  7. local char = owner.Character
  8. local hum = char:FindFirstChildWhichIsA("Humanoid")
  9. local ts = game:GetService("TweenService")
  10. local hrp = char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Torso")
  11.  
  12. if not hum.RigType == Enum.HumanoidRigType.R6 then
  13. warn("Please switch to R6 and run this script again.")
  14. else
  15. print("Script loaded correctly")
  16. end
  17.  
  18. --Values
  19.  
  20. local dbc = false
  21. local keyDbc = false
  22. local running = false
  23.  
  24. --Code
  25.  
  26. local GOINGTOBRAZIL = Instance.new("Sound",hrp)
  27. GOINGTOBRAZIL.SoundId = "rbxassetid://6531010123"
  28. GOINGTOBRAZIL.Volume = 1
  29.  
  30. local rightArm = Instance.new("Weld")
  31. rightArm.Name = "RightArmWeld"
  32. rightArm.Parent = char.Torso
  33. rightArm.Part1 = char["Right Arm"]
  34. rightArm.Part0 = char.Torso
  35. rightArm.C0 = char.Torso["Right Shoulder"].C0
  36. rightArm.C1 = char.Torso["Right Shoulder"].C1
  37.  
  38. local leftArm = Instance.new("Weld")
  39. leftArm.Name = "LeftArmWeld"
  40. leftArm.Parent = char.Torso
  41. leftArm.Part1 = char["Left Arm"]
  42. leftArm.Part0 = char.Torso
  43. leftArm.C0 = char.Torso["Left Shoulder"].C0
  44. leftArm.C1 = char.Torso["Left Shoulder"].C1
  45.  
  46. local rightLeg = Instance.new("Weld")
  47. rightLeg.Name = "RightLegWeld"
  48. rightLeg.Parent = char.Torso
  49. rightLeg.Part1 = char["Right Leg"]
  50. rightLeg.Part0 = char.Torso
  51. rightLeg.C0 = CFrame.new(0.5,-2,0)
  52. --rightLeg.C1 = char.Torso["Right Hip"].C1
  53.  
  54. local leftLeg = Instance.new("Weld")
  55. leftLeg.Name = "LeftLegWeld"
  56. leftLeg.Parent = char.Torso
  57. leftLeg.Part1 = char["Left Leg"]
  58. leftLeg.Part0 = char.Torso
  59. leftLeg.C0 = CFrame.new(-0.5,-1,0)
  60. --leftLeg.C1 = char.Torso["Left Hip"].C1
  61.  
  62. local head = Instance.new("Weld")
  63. head.Name = "HeadWeld"
  64. head.Parent = char.Torso
  65. head.Part1 = char.Head
  66. head.Part0 = char.Torso
  67. head.C0 = char.Torso["Neck"].C0
  68. head.C1 = char.Torso["Neck"].C1
  69.  
  70. local torso = Instance.new("Weld")
  71. torso.Name = "TorsoWeld"
  72. torso.Parent = hrp
  73. torso.Part1 = char.Torso
  74. torso.Part0 = hrp
  75. --torso.C0 = hrp.RootJoint.C0
  76. --torso.C1 = hrp.RootJoint.C1
  77.  
  78. hum.MaxHealth = math.huge
  79. hum.Health = hum.MaxHealth
  80.  
  81. local BillboardGui0 = Instance.new("BillboardGui")
  82. local Frame1 = Instance.new("Frame")
  83. local TextLabel2 = Instance.new("TextLabel")
  84. local Frame3 = Instance.new("Frame")
  85. local TextLabel4 = Instance.new("TextLabel")
  86. BillboardGui0.Parent = char.Head
  87. BillboardGui0.Size = UDim2.new(4, 0, 2, 0)
  88. BillboardGui0.Active = true
  89. BillboardGui0.ClipsDescendants = true
  90. BillboardGui0.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  91. BillboardGui0.MaxDistance = 20
  92. BillboardGui0.StudsOffset = Vector3.new(0, 2, 0)
  93. BillboardGui0.Brightness = 1.5
  94. Frame1.Parent = BillboardGui0
  95. Frame1.Position = UDim2.new(0.5, 0, 0.5, 0)
  96. Frame1.Size = UDim2.new(1, 0, 1, 0)
  97. Frame1.AnchorPoint = Vector2.new(0.5, 0.5)
  98. Frame1.BackgroundColor = BrickColor.new("Institutional white")
  99. Frame1.BackgroundColor3 = Color3.new(1, 1, 1)
  100. Frame1.BackgroundTransparency = 1
  101. TextLabel2.Name = "PlrName"
  102. TextLabel2.Parent = Frame1
  103. TextLabel2.Size = UDim2.new(1, 0, 0.5, 0)
  104. TextLabel2.BackgroundColor = BrickColor.new("Institutional white")
  105. TextLabel2.BackgroundColor3 = Color3.new(1, 1, 1)
  106. TextLabel2.BackgroundTransparency = 1
  107. TextLabel2.Font = Enum.Font.LuckiestGuy
  108. TextLabel2.FontSize = Enum.FontSize.Size28
  109. TextLabel2.Text = owner.DisplayName
  110. TextLabel2.TextColor = BrickColor.new("Institutional white")
  111. TextLabel2.TextColor3 = Color3.new(1, 1, 1)
  112. TextLabel2.TextScaled = true
  113. TextLabel2.TextSize = 25
  114. TextLabel2.TextStrokeTransparency = 0
  115. TextLabel2.TextWrap = true
  116. TextLabel2.TextWrapped = true
  117. Frame3.Name = "helthBar"
  118. Frame3.Parent = Frame1
  119. Frame3.Position = UDim2.new(0, 0, 0.5, 0)
  120. Frame3.Size = UDim2.new(1, 0, 0, 25)
  121. Frame3.BackgroundColor = BrickColor.new("Lime green")
  122. Frame3.BackgroundColor3 = Color3.new(0, 1, 0)
  123. Frame3.BorderSizePixel = 0
  124. TextLabel4.Name = "healthText"
  125. TextLabel4.Parent = Frame3
  126. TextLabel4.Position = UDim2.new(0.5, 0, 0.649999976, 0)
  127. TextLabel4.Size = UDim2.new(1, 0, 0, 25)
  128. TextLabel4.AnchorPoint = Vector2.new(0.5, 0.5)
  129. TextLabel4.BackgroundColor = BrickColor.new("Lime green")
  130. TextLabel4.BackgroundColor3 = Color3.new(0, 1, 0)
  131. TextLabel4.BackgroundTransparency = 1
  132. TextLabel4.BorderSizePixel = 0
  133. TextLabel4.Font = Enum.Font.LuckiestGuy
  134. TextLabel4.Text = "Health : 100%"
  135. TextLabel4.TextColor = BrickColor.new("Institutional white")
  136. TextLabel4.TextColor3 = Color3.new(1, 1, 1)
  137. TextLabel4.TextScaled = true
  138. TextLabel4.TextStrokeTransparency = 0
  139. TextLabel4.TextWrap = true
  140. TextLabel4.TextWrapped = true
  141.  
  142. local Attachment0A = Instance.new("Attachment",char["Right Arm"])
  143. Attachment0A.Position = Vector3.new(0,1,0)
  144.  
  145. local Attachment1A = Instance.new("Attachment",char["Right Arm"])
  146. Attachment1A.Position = Vector3.new(0,-1,0)
  147.  
  148. local Attachment0B = Instance.new("Attachment",char["Left Arm"])
  149. Attachment0B.Position = Vector3.new(0,1,0)
  150.  
  151. local Attachment1B = Instance.new("Attachment",char["Left Arm"])
  152. Attachment1B.Position = Vector3.new(0,-1,0)
  153.  
  154. local Trail0 = Instance.new("Trail")
  155. Trail0.Parent = char["Right Arm"]
  156. Trail0.Attachment0 = Attachment0A
  157. Trail0.Attachment1 = Attachment1A
  158. Trail0.Color = ColorSequence.new(Color3.new(0, 0, 1),Color3.new(0, 0, 1))
  159. Trail0.LightInfluence = 1
  160. Trail0.TextureMode = Enum.TextureMode.Static
  161. Trail0.Lifetime = 1
  162.  
  163. local Trail1 = Instance.new("Trail")
  164. Trail1.Parent = char["Left Arm"]
  165. Trail1.Attachment0 = Attachment0B
  166. Trail1.Attachment1 = Attachment1B
  167. Trail1.Color = ColorSequence.new(Color3.new(0, 0, 1),Color3.new(0, 0, 1))
  168. Trail1.LightInfluence = 1
  169. Trail1.TextureMode = Enum.TextureMode.Static
  170. Trail1.Lifetime = 1
  171.  
  172. local PointLight0 = Instance.new("PointLight")
  173. PointLight0.Parent = hrp
  174. PointLight0.Color = Color3.fromRGB(0, 0, 255)
  175. PointLight0.Range = 14
  176. PointLight0.Brightness = 0 --10
  177. PointLight0.Shadows = true
  178.  
  179. local lightOn = ts:Create(PointLight0,TweenInfo.new(0.3,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{
  180. Brightness = 10,
  181. })
  182.  
  183. local lightOff = ts:Create(PointLight0,TweenInfo.new(0.3,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{
  184. Brightness = 0,
  185. })
  186.  
  187. function readyAnim()
  188. for i = 0,1,0.2 do
  189. rightArm.C0 = rightArm.C0:Lerp(char.Torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, math.rad(15.011)),i)
  190. leftArm.C0 = leftArm.C0:Lerp(char.Torso["Left Shoulder"].C0 * CFrame.Angles(0, 0, math.rad(-15.011)),i)
  191. task.wait()
  192. end
  193. for i = 0,1,0.2 do
  194. rightArm.C0 = rightArm.C0:Lerp(char.Torso["Right Shoulder"].C0 * CFrame.new(0.224, 0.48, 0) * CFrame.Angles(0, 0, math.rad(154.985)),i)
  195. leftArm.C0 = leftArm.C0:Lerp(char.Torso["Left Shoulder"].C0 * CFrame.new(-0.224, 0.48, 0) * CFrame.Angles(0, 0, math.rad(-154.985)),i)
  196. task.wait()
  197. end
  198. end
  199.  
  200. function yeetAnim()
  201. for i = 0,1,0.2 do
  202. rightArm.C0 = rightArm.C0:Lerp(char.Torso["Right Shoulder"].C0 * CFrame.new(1.382, 0.582, 0) * CFrame.Angles(0, 0, math.rad(94.996)),i)
  203. leftArm.C0 = leftArm.C0:Lerp(char.Torso["Left Shoulder"].C0 * CFrame.new(-0.925, 0.637, 0) * CFrame.Angles(0, 0, math.rad(-94.996)),i)
  204. task.wait()
  205. end
  206. for i = 0,1,0.2 do
  207. rightArm.C0 = rightArm.C0:Lerp(char.Torso["Right Shoulder"].C0 * CFrame.new(1.355, -0.16, 0) * CFrame.Angles(0, 0, math.rad(-35.008)),i)
  208. leftArm.C0 = leftArm.C0:Lerp(char.Torso["Left Shoulder"].C0 * CFrame.new(-1.32, -0.172, 0) * CFrame.Angles(0, 0, math.rad(19.996)),i)
  209. task.wait()
  210. end
  211. end
  212.  
  213. function defaultAnim()
  214. for i = 0,1,0.2 do
  215. rightArm.C0 = rightArm.C0:Lerp(char.Torso["Right Shoulder"].C0,i)
  216. leftArm.C0 = leftArm.C0:Lerp(char.Torso["Left Shoulder"].C0,i)
  217. task.wait()
  218. end
  219. end
  220.  
  221. mouse.Button1Down:Connect(function()
  222. if mouse.Target ~= nil then
  223. local model = mouse.Target:FindFirstAncestorWhichIsA("Model")
  224. if model then
  225. if model:FindFirstChildWhichIsA("Humanoid") then
  226. local hum = model:FindFirstChildWhichIsA("Humanoid")
  227. local root = model:FindFirstChild("HumanoidRootPart") or model:FindFirstChild("Torso") or model:FindFirstChild("Head")
  228. if root then
  229. if dbc == false and keyDbc == false then
  230. dbc = true
  231. char:SetPrimaryPartCFrame(root.CFrame + Vector3.new(0,0,1.5))
  232. readyAnim()
  233. GOINGTOBRAZIL:Play()
  234. root.Anchored = false
  235. local weld = Instance.new("Weld",hrp)
  236. weld.Part0 = char.Torso
  237. weld.Part1 = root
  238. weld.C0 = CFrame.new(0,3,-0.5)
  239. hum.PlatformStand = true
  240. mouse.KeyDown:Connect(function(key)
  241. if keyDbc == false then
  242. if key == "q" then
  243. keyDbc = true
  244. weld:Destroy()
  245. coroutine.wrap(function()
  246. yeetAnim()
  247. defaultAnim()
  248. end)()
  249. local Skreem = Instance.new("Sound",root)
  250. Skreem.SoundId = "rbxassetid://4620905105"
  251. Skreem.Volume = 1
  252. Skreem:Play()
  253. for _,joint in pairs(model:GetDescendants()) do
  254. if joint:IsA("Motor6D") then
  255. local A1 = Instance.new("Attachment")
  256. local A2 = Instance.new("Attachment")
  257. local socket = Instance.new("BallSocketConstraint")
  258. A1.Name = "A1"
  259. A2.Name = "A2"
  260. A1.Parent = joint.Part0
  261. A2.Parent = joint.Part1
  262. A1.CFrame = joint.C0
  263. A2.CFrame = joint.C1
  264. socket.Name = "Socket"
  265. socket.Parent = joint.Parent
  266. socket.Attachment0 = A1
  267. socket.Attachment1 = A2
  268. socket.LimitsEnabled = true
  269. socket.TwistLimitsEnabled = true
  270. joint.Enabled = false
  271. end
  272. end
  273. local Force = Instance.new("BodyForce")
  274. Force.Parent = root
  275. Force.Name = "Force"
  276. Force.Force = (hrp.CFrame.LookVector) * 2000
  277. task.wait(3)
  278. local fard = Instance.new("Sound",root)
  279. fard.SoundId = "rbxassetid://7466798053"
  280. fard.Volume = 1
  281. fard:Play()
  282. local e = Instance.new("Explosion")
  283. e.BlastPressure = 100
  284. e.BlastRadius = 0
  285. e.Position = root.Position
  286. e.Parent = workspace
  287. for _,joint in pairs(model:GetDescendants()) do
  288. if joint:IsA("Motor6D") then
  289. if joint.Parent:FindFirstChild("Socket") then
  290. joint.Parent.Socket:Destroy()
  291. end
  292. if joint.Part0:FindFirstChild("A1") then
  293. joint.Part0.A1:Destroy()
  294. end
  295. if joint.Part1:FindFirstChild("A2") then
  296. joint.Part1.A2:Destroy()
  297. end
  298. joint.Enabled = true
  299. end
  300. end
  301. Skreem:Destroy()
  302. Force:Destroy()
  303. fard:Destroy()
  304. hum.PlatformStand = false
  305. dbc = false
  306. keyDbc = false
  307. elseif key == "e" then
  308. for _,joint in pairs(model:GetDescendants()) do
  309. if joint:IsA("Motor6D") then
  310. if joint.Parent:FindFirstChild("Socket") then
  311. joint.Parent.Socket:Destroy()
  312. end
  313. if joint.Part0:FindFirstChild("A1") then
  314. joint.Part0.A1:Destroy()
  315. end
  316. if joint.Part1:FindFirstChild("A2") then
  317. joint.Part1.A2:Destroy()
  318. end
  319. joint.Enabled = true
  320. end
  321. end
  322. coroutine.wrap(function()
  323. defaultAnim()
  324. end)()
  325. hum.PlatformStand = false
  326. weld:Destroy()
  327. dbc = false
  328. keyDbc = false
  329. end
  330. end
  331. end)
  332. end
  333. end
  334. end
  335. end
  336. end
  337. end)
  338.  
  339. --Walking
  340.  
  341. coroutine.wrap(function()
  342. while task.wait() do
  343. if hrp.Velocity.x > 1 or hrp.Velocity.x < -1 or hrp.Velocity.z > 1 or hrp.Velocity.z < -1 then
  344. torso.C0 = torso.C0:lerp(CFrame.new(0,math.sin(tick()*20)/15,0) * CFrame.Angles(0,math.rad(-hrp.Orientation.y),math.cos(tick()*10)/15) * CFrame.fromEulerAnglesXYZ(hum.MoveDirection.z/6,0,-hum.MoveDirection.x/6) * CFrame.Angles(0,math.rad(hrp.Orientation.y),0),0.3)
  345. leftLeg.C0 = leftLeg.C0:lerp(CFrame.new(-0.5,-1+math.cos(tick()*10)/4,0) * CFrame.Angles(0,math.rad(-hrp.Orientation.y),0) * CFrame.fromEulerAnglesXYZ((-math.sin(tick()*10)*hum.MoveDirection.z)/1.5,0,(-math.sin(tick()*10)*-hum.MoveDirection.x)/1.5) * CFrame.Angles(0,math.rad(hrp.Orientation.y),0) * CFrame.new(0,-1,0),0.3)
  346. rightLeg.C0 = rightLeg.C0:lerp(CFrame.new(0.5,-1-math.cos(tick()*10)/4,0) * CFrame.Angles(0,math.rad(-hrp.Orientation.y),0) * CFrame.fromEulerAnglesXYZ((math.sin(tick()*10)*hum.MoveDirection.z)/1.5,0,(math.sin(tick()*10)*-hum.MoveDirection.x)/1.5) * CFrame.Angles(0,math.rad(hrp.Orientation.y),0) * CFrame.new(0,-1,0),0.3)
  347. else
  348. torso.C0 = torso.C0:lerp(CFrame.new(0,math.sin(tick())/20,0) * CFrame.Angles(0,math.rad(0),math.sin(tick())/30),0.3)
  349. leftLeg.C0 = leftLeg.C0:lerp(CFrame.new(-0.5,-1-math.sin(tick())/20,0) * CFrame.Angles(0,0,math.rad(-3)-math.sin(tick())/30) * CFrame.new(0,-1,0),0.3)
  350. rightLeg.C0 = rightLeg.C0:lerp(CFrame.new(0.5,-1-math.sin(tick())/20,0) * CFrame.Angles(0,0,math.rad(3)-math.sin(tick())/30) * CFrame.new(0,-1,0),0.3)
  351. end
  352. if running == true then
  353. hum.WalkSpeed = 80
  354. if Trail0.Enabled == false then
  355. Trail0.Enabled = true
  356. end
  357. if Trail1.Enabled == false then
  358. Trail1.Enabled = true
  359. end
  360. if lightOff.PlaybackState == Enum.PlaybackState.Playing then
  361. lightOff:Pause()
  362. end
  363. if lightOn.PlaybackState ~= Enum.PlaybackState.Playing then
  364. lightOn:Play()
  365. end
  366. else
  367. hum.WalkSpeed = 16
  368. if Trail0.Enabled == true then
  369. Trail0.Enabled = false
  370. end
  371. if Trail1.Enabled == true then
  372. Trail1.Enabled = false
  373. end
  374. if lightOn.PlaybackState == Enum.PlaybackState.Playing then
  375. lightOn:Pause()
  376. end
  377. if lightOff.PlaybackState ~= Enum.PlaybackState.Playing then
  378. lightOff:Play()
  379. end
  380. end
  381. pcall(function()
  382. Frame3:TweenSize(UDim2.new(math.clamp(hum.Health / 100,0,1), 0,0, 25))
  383. end)
  384. TextLabel4.Text = "Health : " .. tostring(math.floor(math.clamp(hum.Health,0,100))) .. "%"
  385. end
  386. end)()
  387.  
  388. char.DescendantAdded:Connect(function(i)
  389. if i:IsA("BodyPosition") or i:IsA("BodyForce") or i:IsA("BodyVelocity") or i:IsA("BodyGyro") then
  390. i:Destroy()
  391. end
  392. end)
  393.  
  394. hum.Died:Connect(function()
  395. local e = Instance.new("Explosion")
  396. e.BlastPressure = 100
  397. e.BlastRadius = 0
  398. e.Position = hrp.Position
  399. e.Parent = workspace
  400. end)
  401.  
  402. hum.HealthChanged:Connect(function()
  403. hum.Health = hum.MaxHealth
  404. end)
  405.  
  406. mouse.KeyDown:Connect(function(key)
  407. if key == string.char(48) then
  408. running = true
  409. print("Running")
  410. end
  411. end)
  412.  
  413. mouse.KeyUp:Connect(function(key)
  414. if key == string.char(48) then
  415. running = false
  416. print("Walking")
  417. end
  418. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement