local Chee = script.Parent.Parent.PlayerGui:WaitForChild("ScreenGui"):WaitForChild("Frame"):WaitForChild("TextBox")
local bacon = script.Parent.Parent:WaitForChild("Folder"):WaitForChild("Timer")
local Player = game.Players.LocalPlayer
bacon.Changed:connect(function(prop)
print(prop)
do Chee.Text = bacon.Value
for i=1,bacon.Value do
wait(1)
bacon.Value = bacon.Value - 1
Chee.Text = bacon.Value
if bacon.Value == 0 then
end
end
end
end)
My Gui/Playerscript/localscript isn't working, it keeps running I=1,Bacon.Value every time its changed.
How do you make it so The I=1,Value only runs once when it's changed?
Also Bonus question: How do you get a player's Character from a Localscript?
Help would be greatly appreciated TuT'

1 comment
How to get a Character from local script: local Char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:wait()