Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

multiplier is not a valid member of Player "Players.Cuoudlix"?

Asked by 2 years ago

local replicatedStorage = game:GetService("ReplicatedStorage") local remoteEvents = replicatedStorage:WaitForChild("remoteEvents") local clickEvent = remoteEvents:WaitForChild("Clicks")

clickEvent.OnServerEvent:Connect(function(player) local leaderstats = player.leaderstats local multiplier = player.multiplier.Value local clicks = leaderstats.Clicks clicks.Value = clicks.Value + (1*multiplier.Value) end)

0
the error is saying that you dont have multiplier in the player did you add it to the player? and is it on the server? Puppynniko 1059 — 2y
0
how do i SyconicLonic 6 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

Maybe you meant to get the multiplier in the leaderstats and not the player itself. Try that.

Ad

Answer this question