I’m making a piggy fanmade game, now i’m trying to make the bot countdown, but for some reason, this keeps happening:
I don’t know why, it keeps happening, i have a int value inside replicated storage and here is my script:
Server:
local RS = game:GetService("ReplicatedStorage")
local Timer = RS.Timer
local Status = Timer.Status
for count = 30, 0, -1 do
-- Prints the current number the for loop is on
Status.Value = "Piggy spawning"..count
-- Wait 1 second
task.wait(1)
end
Client:
while task.wait() do
script.Parent.Text = game.ReplicatedStorage.Timer.Status.Value
end
You can store a string into number/int values if the string can be converted into the proper type, I wouldn’t bet on that (for anything really). Always try and have the proper types for an object/API usage if possible.