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

Player Won't Teleport When Integer Hits 0?

Asked by 5 years ago

I really have no idea why. All answers Accepted


local function gi() local int = game:GetService("ReplicatedStorage").int local ni = game:GetService("ReplicatedStorage").nint local bo = game:GetService("ReplicatedStorage").gfd while true do int.Changed:Connect(function() script.Parent.Text = "Intermission = "..int.Value end) wait(1) if bo.Value == false then while true do wait(1) int.Value = int.Value - 10 bo.Value = true end if int.Value == 0 then ni.Value = 200 script.Parent.Visible = false for _, player in pairs(game.Players:GetPlayers()) do if player.Character then player.Character:SetPrimaryPartCFrame(CFrame.new(-184, 0.5, 141)) end end end end end end game:GetService("ReplicatedStorage").fui.OnClientEvent:Connect(gi)
0
are there any errors mlgwinners 30 — 5y
0
no poopstermaniac 1 — 5y

Answer this question