This is my code right now:
local plr = game.Players.LocalPlayer
local chr = plr.Character
local replicatedstorage = game:GetService("ReplicatedStorage")
local standevent = replicatedstorage.StandChanger
plr.Chatted:Connect(function(msg, number)
if msg == "!givestand "..number then
if plr.Name == "QuanVo200" then
standevent:FireServer(plr, number)
end
end
end)
And this is the event:
game.ReplicatedStorage.StandChanger.OnServerEvent:Connect(function(plr, number)
plr.Data.Stand.Value = number
plr:LoadCharacter()
end)
I expected it to change my Stand value into the number but it just doesn't work. Hope you can help. Thanks.
Edit: I started scripting a few months ago.

8 comments
I'm new to the page so idek how to mark as answers.
I've never asked a question, so i don't know the layout, i think it's at the bottom.
When i used the command and checked for my value
it always says 0
There's probably something wrong with your events then since this SHOULD work.
I've tried like... a billion ways (not literally) to fix it. And i still can't.
You need to ask for help then using remote events / local script and server code.
Here's the screenshot of the error. http://prnt.sc/t39bkf | Edit: NVM SORRY THAT WAS JUST A print() THING.