#Isnt giving Strength
1 messages · Page 1 of 1 (latest)
Oh
As I see
You are doing the code into a local script
Its not going to work, because Tool.Activated is client
So, you could use Players.LocalPlayer instead of Players:GetPlayerFromCharacter()
And, btw, for security reasons, you should not copy and paste the same script into a local.
Like this, players could easily exploit
** You are now Level 6! **
For example, giving themselves 10000 strength.
So I reccomend you to use a script on server script service, which receives the info of a event that has been fired by the client and give the player strength, so they can't cheat.
So I just gotta change it to server
Client?
Client script
All 4
yes
There is one
Oh wow that open shop
and just do
local StrengthGiver = game.ReplicatedStorage:WaitForChild("StrengthGiver")
local strength = 1
StrengthGiver:FireServer(strength)
wdym?
Like what should it be called
K