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

script that adds click detector not working?

i want to make it so you can click a player but it is not working

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(player)
	local clickDetector = Instance.new("ClickDetector")
	clickDetector.Parent = player.Character
end)

1 answer

Think I fixed It (Is It a local script btw?)

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(player)
    local clickDetector = Instance.new("ClickDetector")
    clickDetector.Parent = player.Character.Torso
end)

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