Unlocking Item From a Shop When Reaching a Certain Amount of Kills

Yes it is in a local script, and yes I have a server script doe the onServerEvent thing

1 Like

Then it should work go ahead and try it out.

For some reason, the text didn’t change. (Not your script, mine) Its the one above there is no error in output or script analysis

I don’t know why your script wouldn’t work but keep in mind that it has to be a local script and not a script because your calling :FireServer() which has to be called from the client, also when you change a TextLabel.Text or any GUI that is not a excluding BillboardGuis and SurfaceGuis you should change them on the client from the player’s PlayerGui not the StarterGui you can get the PlayerGui by this code:

local PlayerGui = game:GetService("Players").LocalPlayer.PlayerGui

--[[
That will store the PlayerGui in a local variable
Also LocalPlayer will only work in local scripts not scripts
]]

Also the issue that this topic were created for is now solved so for future issues it’s highly recommended that you create an another topic for that issue and mark my post as the solution because it solved this topic’s issue.