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

surfacegui textlabel timer not working when grouped as a model or folder?

Asked by 1 year ago
Edited 1 year ago

basically, the nuke detonator is for a game im working on for a person, the detonator itself is supposed to be like an admin event type thing which is gonna be inserted into the game using ADONIS admin commands, the issue is that when you insert a model with the admin commands every part of the model you are trying to insert is getting grouped as a model when its inserted, which makes the countdown not appear. is there any way to fix this?

videos with my issue

https://www.youtube.com/watch?v=zZUbtQHfAAQ

https://www.youtube.com/watch?v=UepMnYnGFzY

script.Parent.TextColor3 = Color3.new(206, 206, 0) script.Parent.Parent.Frame.Visible = true game.Workspace.Audios:Remove() script.Parent.Parent.Frame2.Visible = false

local min = 1 local sec = 41 local mic = 1 script.Music:Play()

while true do script.Parent.Parent.Text.Visible = true mic = mic - 2 if mic <= -1 then sec = sec - 1 mic = 59 if sec == -1 then min = min - 1 sec = 59 if min == -1 then min = 0 sec = 0 mic = 0 end end end if min <= 9 and sec <= 9 and mic <= 9 then script.Parent.Text = "0" ..min.. ":0" ..sec..":0" ..mic elseif min <= 9 and sec <= 9 and mic >= 10 then script.Parent.Text = "0" ..min.. ":0" ..sec..":" ..mic elseif min <= 9 and sec >= 10 and mic <= 9 then script.Parent.Text = "0" ..min.. ":" ..sec..":0" ..mic elseif min <= 9 and sec >= 10 and mic >= 10 then script.Parent.Text = "0" ..min.. ":" ..sec..":" ..mic elseif min >= 10 and sec <= 9 and mic <= 9 then script.Parent.Text = min.. ":0" ..sec..":0" ..mic elseif min >= 10 and sec <= 9 and mic >= 10 then script.Parent.Text = min.. ":0" ..sec..":" ..mic elseif min >= 10 and sec >= 10 and mic <= 9 then script.Parent.Text = min.. ":" ..sec..":0" ..mic elseif min >= 10 and sec >= 10 and mic >= 10 then script.Parent.Text = min.. ":" ..sec..":" ..mic end wait() end

Answer this question