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

how do i define the player in a script? not local

not local

local function click(player)
	game.Workspace.Countdown.BrickColor = BrickColor.new("New Yeller")
	player.Character.Head.Anchored = true
	
	wait(10)
	
	game.Workspace.Countdown.BrickColor = BrickColor.new("Lime green")
	player.Character.Head.Anchored = false
	while true do
		script.Player.PlayerGui.Tasksbar.t2.BackgroundColor3 = Color3.new("Lime Green")
	end
end

workspace.Task1.ClickDetector.mouseClick:connect(click)

2 comments

0

is the script returning any errors? you should make the "while true do" statement "while wait() do"

0

i said the error, it doesnt work

1 answer

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