You can write your topic however you want, but you need to answer these questions:
I don’t know how to make the server see the points from a local script.
local Part = script.Parent
local Plr = game.Players.LocalPlayer
local money = Plr.leaderstats.Money
Part.MouseButton1Click:Connect(function()
Plr.leaderstats.Poind.money += 1
end)
I Use Youtobe and whatching more video but it dosen’t work.
Add a RemoteEvent in ReplicatedStorage named “Click”
Change your LocalScript to this:
--//Services
local ReplicatedStorage = game:GetService("ReplicatedStorage")
--//Variables
local Click = ReplicatedStorage:WaitForChild("Click")
local Part = script.Parent
--//Functions
Part.MouseButton1Click:Connect(function()
Click:FireServer()
end)
Add a script in ServerScriptService and paste this inside:
--//Services
local ReplicatedStorage = game:GetService("ReplicatedStorage")
--//Variables
local Click = ReplicatedStorage:WaitForChild("Click")
--//Functions
Click.OnServerEvent:Connect(function(player)
player.leaderstats.Points.Value += 1
end)
Not sure if Poind was a typo, but change it back if needed.