Workspace.Startevent.Changed:connect(function() local selk = workspace:IsA('Humanoid') selk.Parent.Seeker.Value = true repeat wait() until sek == 1 workspace.GameInProgress.Value = true t = 20 --game time repeat wait(1) t = t-1 print(t) if gameend.Value then t = 0 end until t == 0 wait(0.1) t = 20 gameend.Value = true wait(0.1) gameend.Value = false end)
the script is trying to locate a BoolValue inside a player model
it would be like this:
local BoolValue = Humanoid.Parent.Seeker
Dont get me wrong, it locates the BoolValue but it puts out an error:
Workspace.GameStart:47: attempt to index local 'selk' (a boolean value)
Any ideas?
Found the solution myself:
Workspace.Startevent.Changed:connect(function() local selk = Workspace:FindFirstChild("Humanoid", true) print(selk) selk.Parent.Seeker.Value = true repeat wait() until sek == 1 workspace.GameInProgress.Value = true t = 20 --game time repeat wait(1) t = t-1 print(t) if gameend.Value then t = 0 end until t == 0 wait(0.1) t = 20 gameend.Value = true wait(0.1) gameend.Value = false end)
The Humanoid was inside a model so you have to use the second argument in FindFirstChild("Humanoid", true)