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

How do i make the size,speed,and jump always be at the variable? Thanks!

Asked by 6 years ago

print("Cash Leaderboard Loaded")

function onPlayerEntered(newPlayer)

local stats = Instance.new("IntValue")
stats.Name = "leaderstats"

local cash = Instance.new("IntValue")
cash.Name = "JUMP"
cash.Value = 0

local cash2 = Instance.new("IntValue")
cash2.Name = "SPEED"
cash2.Value = 0

local cash3 = Instance.new("IntValue")
cash3.Name = "SIZE"
cash3.Value = 1



cash.Parent = stats
stats.Parent = newPlayer

cash2.Parent = stats
stats.Parent = newPlayer

cash3.Parent = stats
stats.Parent = newPlayer

while true do wait(1) cash.Value = cash.Value + 1

    cash.Value = cash2.Value + 1

    cash.Value = cash3.Value + 1
end

end

game.Players.ChildAdded:connect(onPlayerEntered)

repeat

local player = game.Players.LocalPlayer local character = player.CharacterAdded:wait() local Humanoid = character:WaitForChild("Humanoid") Humanoid.WalkSpeed = "SPEED" Humanoid.JumpPower = "JUMP" Humanoid.Size = "SIZE"

until false

0
Size isn't a property of the Humanoid. KingLoneCat 2642 — 6y

Answer this question