#I need help on a script thats why im here a countdown script
1 messages · Page 1 of 1 (latest)
can u click on the button in the script tab to format the script properly
what
do u mean
format to what
tell me my issue
@alpine star i summon u now
@weak dome which scripts you have problems with?
i fixed the issue
i think
wait i gotta wait
oh
it takes 1 minute
oke
lmk when you done
it crashed my pc
uh it stoped at 7 and crashed my pc
send code in discord
we are in discord?
?
put in discord
old pic
oops
local remote = game.ReplicatedStorage.playtime
local gui = game.StarterGui.ScreenGui.Frame.TextLabel
local timevalue = Instance.new("NumberValue")
timevalue.Parent = game.ReplicatedStorage
timevalue.Name = ("timevalue")
timevalue.Value = 11
local serverplayer = game.Players.PlayerAdded:Connect(function(player)
end)
local function starttimer()
timevalue.Value = 11
for i = 1, 11, 1 do
task.wait(1)
timevalue.Value -= 1
gui.Text = timevalue.Value
remote:FireAllClients() if timevalue.Value == 0 then end end end
local function gametimer()
timevalue.Value = 100
for i = 1, 100, 1 do
task.wait(1)
timevalue.Value -= 1
gui.Text = timevalue.Value
remote:FireAllClients() if timevalue.Value == 0 then starttimer()
end
end
end
starttimer() if timevalue.Value == 0 then
gametimer() if timevalue.Value == 0 then
starttimer()
end
end
copy the text and send it here
@weak dome
local remote = game.ReplicatedStorage.playtime
local gui = game.StarterGui.ScreenGui.Frame.TextLabel
local timevalue = Instance.new("NumberValue")
timevalue.Parent = game.ReplicatedStorage
timevalue.Name = ("timevalue")
timevalue.Value = 11
local serverplayer = game.Players.PlayerAdded:Connect(function(player)
end)
local function starttimer()
timevalue.Value = 11
for i = 1, 11, 1 do
task.wait(1)
timevalue.Value -= 1
gui.Text = timevalue.Value
remote:FireAllClients()
end
end
local function gametimer()
timevalue.Value = 100
for i = 1, 100, 1 do
task.wait(1)
timevalue.Value -= 1
gui.Text = timevalue.Value
remote:FireAllClients()
if timevalue.Value == 0 then
starttimer()
end
end
end
starttimer()
if timevalue.Value == 0 then
gametimer()
if timevalue.Value == 0 then
starttimer()
end
end
try this now
Learn the basics
I just have you tell you
Learn the basics
and ^ that too I suppose.
wha
@weak dome try the script I sent
okay
didnt work
i did learn the basic the basics didnt learn me
what errors on output
** You are now Level 5! **
its a logic error
show me the error
screenshot cmon
okay
theres no error
just a logic error
search up what an logic error mean's
tell me the line number
just send the output anyway? and if nothing is printing then add print statements
^
