So I want to change a players value without using remote events or ontouched, any help? Here is the script.
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local character = Player.Character or Player.CharacterAdded:Wait()
game.Workspace.CustomizationPartGui.SurfaceGui.FirstName.Alex.MouseButton1Click:connect (function ()
Player:WaitForChild("leaderstats").FirstName.Value = game.Workspace.CustomizationPartGui.SurfaceGui.FirstName.Alex.Text
end)

1 comment
You can only use LocalPlayer on the client