local speed = script.Speed local textbox = game.StarterGui.ScreenGui.SpeedAmountTextBox local leaderstats = script.Parent.Leaderboard local player = game.Players.LocalPlayer local datastore = game:GetService("DataStoreService") local ds1 = datastore:GetDataStore("CashSaveSystem") if player ~= nil then player:WaitForChild("leaderstats") player.leaderstats:WaitForChild("Speed") end MinSpeed = 15 --Player must be going this fast in SPS to earn money. while wait(0.65) do textbox.Text = speed.Value if player.Character.HumanoidRootPart.Velocity.Magnitude > MinSpeed and game.Players.LocalPlayer.Character.Humanoid.Sit == true then game:FindFirstChild("Humanoid") if game:FindFirstChild("Humanoid") == true and script.Speed.Value >= 0 then end end end
Put what you want to happen if there is a humanoid in the game object and the value of Speed is greater than 0.
Closed as Not Constructive by Lugical and Goulstem
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?