local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")
local GloveStatsNum = Player.GloveStatsDetect
local GloveV = GloveStatsNum.Value
local Detect = Humanoid.Parent:WaitForChild("inmap")
local tool = Humanoid.Parent:FindFirstChildWhichIsA("Tool")
local toolG = tool:FindFirstChild("Information").Power
local GloveDetect
local textIndicator = script.Parent
local function UpdatePower()
textIndicator.Text = "Power: "..math.round(toolG.Value)
return
end
UpdatePower()
toolG:GetPropertyChangedSignal("Value"):Connect(UpdatePower)```
#I can't figure out to get rid of the Infinite Yield problem
1 messages · Page 1 of 1 (latest)
the Detect and toolG is the one that is causing the Infinite Yield, the script does work but I just do not like seeing the infinite yield in my Output
client?
if infyield appear means it doesnt exist yet when u calling it
yes it's a client
try to add a task.wait() above like 3s, if it work after doing that then it means, ur tools isnt loaded yet
also do local Character = Player.Character or Player.CharacterAdded:Wait()
because Humanoid isnt found
your game is probably starting to soon
so do waht rinn said
and do lua local Character = Player.Character or Player.CharacterAdded:Wait()
everything works fine, except the Detect line, I have a lobby portal where if you enters through them, you are given a BoolValue named "inmap"
that's not the issue, the issue were what I explained above
wdym Detect line
"local Detect" line
basically, I want the UpdatePower() to resume once it finds "inmap" through a character's children
well nmap isnt being put into the player
or the script is being ran before inmap is put into the player
i would recomend a remote event
to fire the script
is this solved @primal pulsar