Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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)

2 comments

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?

0

how do i

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.