i have a regular script in the players startergui and its doing everything properly but its having trouble interacting with the gui's
so like everything functions and the ball is teleported when it should and all that but it doesnt change the guis at all..
but it works perfectly in stuido
no errors
script:
while true do
wait(1)
if game.Workspace:WaitForChild("Game").Value == 1 then
game.Workspace:FindFirstChild("Game").Value = 0
repeat wait() until game.Players.NumPlayers >1
print"Enough Players"
local sb = script.Parent:WaitForChild("Scoreboard")
local p = 10 -- length of practice
local c = 3 -- countdown before period starts
local l = 480 -- how long each period is
repeat
sb.Period.Text = "Practice ends in: " .. (p) .." Seconds"
p = p-1
wait(1)
until
p == 0
sb.Period.Text = "Practice has ended"
wait(3)
local cd = script.Parent:WaitForChild("Per CD").CD
cd.Text = "Game Starts In"
cd.Visible = true
wait(1)
repeat
cd.Text = (c)
c = c-1
wait(1)
until
c == 0
local ball = game.Lighting:WaitForChild("Basketball"):Clone()
ball.Parent = game.Workspace
ball.Handle.Position = Vector3.new(0.14, 30.23, 0.193)
cd.Text = "BEGIN"
wait(2)
cd.Visible = false
sb.Period.Text = "Period: 1"
repeat
sb.Time.Text = (l)
l = l-1
wait(1)
until
l == 0
end
end
|