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

This script works in studio but not in real game? its like the Instances never loads.

Asked by 7 years ago
Edited by OldPalHappy 7 years ago

This works in test studio but not in real game script:

game.Players.PlayerAdded:connect(function(plr)


_G.leader = Instance.new("IntValue", plr)
_G.leader.Name = "leaderstats"

_G.Melexp = Instance.new("IntValue", leader)
_G.Melexp.Value = 1000
_G.Melee = Instance.new("IntValue", leader)
_G.Melee.Name = "Melee"

While true do
_G.Melee.Value = Melexp.Value / 1000
wait(3)
end
end)

Textlabel that displays Melee level local script:
wait(7)
while true do
script.Parent.Text = Melee.Value
wait(3)
end

So this would display 1 in test studio mode but in real game IT would Say that Melee = nil. Like IT never loaded in, but IT shuld load in before the Textlabel loads. I got 5 other scripts like this With stamina, staminaexp and more

0
Line 12: you have 'while' uppercase. :P TheeDeathCaster 2368 — 7y

Answer this question