Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago
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
0
Thats what you decide... Is this even a question? User#25281 0 — 5y
0
Is there any error in the script? I just see empty lines. Please clarify. Lugical 425 — 5y

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?

1 answer

Log in to vote
0
Answered by 5 years ago

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

Ad