hi i am trying to make a streetlight that you can remove the light brick from but if i am on construction it still says player is not on construction
local clickdetecter = script.Parent:WaitForChild("ClickDetector")
local Team = game:GetService("Teams")--["Construction"]
local function onMouseClick(player)
print('player who clicked is ' .. player.Name)
if script.Parent.broken.Value == true then
if player.Team == Construction then
print("player is on construction")
else
print("player is not on construction")
end
else
print("light is not broken")
end
end
clickdetecter.MouseClick:Connect(onMouseClick)

2 comments
that worked thank you
No problem!