so im making a game where you have to press a orb which has an specific color and assigns the same color to the torso, everything was going fine until i realized that “hints” only work on local scripts (tweenservice also works in serverscripts) but clickdetectors only work in server scripts, how can I make them work?
Problematic lines:
(Only works on localscript )
local hint = Instance.new("Hint")
hint.Text = "..."
click detector part (server script only)
for i, orb in ipairs(folder:GetChildren()) do
if orb:IsA("BasePart") then
local clickDetector = orb:FindFirstChildOfClass("ClickDetector")
local sparkles = orb:FindFirstChildOfClass("Sparkles")
if clickDetector and sparkles then
clickDetector.MouseClick:Connect(function(player)
onOrbClicked(player, orb)
end)
else
print("this game is broken, rejoin")
end
end
end
if you want more information about it, just ask me.