i am making a clicking game and i found out others cant see my/others stats i searched it and i found i need use RemoteEvent but i dont know how to use it my script is it:
local clicks = game.Players.LocalPlayer:FindFirstChild("leaderstats"):FindFirstChild("Clicks")
local rebirth = game.Players.LocalPlayer:FindFirstChild("leaderstats"):FindFirstChild("Rebirth")
local cooldown = false
script.Parent.MouseButton1Click:Connect(function()
if cooldown == false then
cooldown = true
if (rebirth.Value > 1) then
clicks.Value = clicks.Value + (1 * rebirth.Value)
wait(0.1)
cooldown = false
else
clicks.Value = clicks.Value + 1
wait(0.1)
cooldown = false
end
end
end)
script.Parent.MouseButton1Click:Connect(function()
if cooldown == false then
script.Parent.Parent.Parent:WaitForChild("+thing").Visible = true
script.Parent.Parent.Parent:WaitForChild("+thing").Text = rebirth.Value
wait(2)
script.Parent.Parent.Parent:WaitForChild("+thing").Visible = false
end
end)
