I was doing my code until I saw this in the output bar:
Infinite yield possible on 'Players.Note_23322:WaitForChild("StepsBonus")'
I am trying to make GUI show up when i touch an orb here is the code also
local player = game.Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local stepsBonus = player:WaitForChild("StepsBonus") function createOrbGui () if(player.StepsBonusCheck.Value ~= 0) then local text = Instance.new("TextLabel") text.Parent = playerGui.SpeedGUI text.Name = "BonusLabel" text.Position = UDim2.new(0.5, 0, .85, 0) text.TextSIze = 40 text.TextColor3 = player.BCVCheck.Value.color text.Text = "+" .. player.StepsBonusCheck.Value .. " steps!" wait(5) player.StepsBonusCheck.Value = 0 text:Destroy() end end script.Parent.Parent.StepsBonusCheck.Changed:Connect(createOrbGui)