Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why is There a red line there?

Its either I need a 'for' Loop(Forgotten How to make one unless its via for _,v in pairs(game.Player:GetChildren()) do )

But there is a red line right at '#' And No Idea why.

while wait() do
	health = {10, 15, 25, 40, 45, 60, 34, 26, 67, 78, 93, 100}
	end
	for _,v in pairs(game.Players:GetChildren())do
local function kill()
	local humanoid = v.Character:findFirstChild("Humanoid")
	if humanoid then
		humanoid.Health = {1, 12 #health)-- Red line under '#'

end
end
end
end

2 comments

0

It means there's a syntax error.

0

You used a '{' instead of a '(' under line 8. :P

1 answer

while wait() do
    health = {10, 15, 25, 40, 45, 60, 34, 26, 67, 78, 93, 100}
    end
    for _,v in pairs(game.Players:GetChildren())do
local function kill()
    local humanoid = v.Character:findFirstChild("Humanoid")
    if humanoid then
        humanoid.Health = (1, 12 #health)-- Problem as stated by Alpha was you used { instead of a (

end
end
end
end

This discussion is preserved as it was. New answers, comments, and votes are closed.