Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

What do I have to put at lines 19/20 of this script?

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

2 comments

0

Thats what you decide... Is this even a question?

0

Is there any error in the script? I just see empty lines. Please clarify.

1 answer

Put what you want to happen if there is a humanoid in the game object and the value of Speed is greater than 0.

This discussion is preserved as it was. New answers, comments, and votes are closed.