You can change the player’s character by applying the Rig’s HumanoidDescription
player.Character.Humanoid:ApplyDescription(character.Humanoid.HumanoidDescription)
Has to be in a server script
You can change the player’s character by applying the Rig’s HumanoidDescription
player.Character.Humanoid:ApplyDescription(character.Humanoid.HumanoidDescription)
Has to be in a server script
Thats a lot better, suggestion to OP would be to actually make a complete server-side shop, to prevent hacking…
1. Hackers can’t see the code thus can handle currency much easily without having to look for ways to secure it
2. Shop management would be much simpler this way too…
How you may do it is create a button that fires a remote event to the server, server then replicates shop GUI from server storage… into players, PlayerGui… (make sure you do this in a module script… then assign all gui’s by player name to a dictionary… [example: GUIStorage[plr] = gui
]
after this you can simply create a Remote Function and that way have a secure system
with leaderstats
LEADERS_Shop.rbxm (31,3 KB)
without leaderstats
NOLEADERS_Shop.rbxm (31,1 KB)
I mean I wouldn’t recommend this, since that doesn’t do any of the things I said above.
Hackers can easily steal replicated storage items meaning they could simply clone the tools in replicated storage to their Player Backpack
It’s simple so I guess thats pretty nice about it but, if we are talking about security then I don’t see this being a good system…
Disabling scripts is very easy
Can you disable server scripts, if you were an exploiter?
I’m unsure as to if you could, I could be wrong
You can disable server scripts if it’s available in the explorer when client-sided, but server scripts disabling on client sided does no effect and still runs.
Basically, you can disable the script but you can’t disable the behavior. It only marks it as disabled in client-sided.
Sorry for the late reply, @LuaAlbi, @CreepingGamingTV, @Xapelize. Also for @LuaAlbi’s shop roblox file, it doesn’t open because it is in rbxm file instead of rbxl file.
Just drag the rbxm file into your studio…
What do you mean by dragging? I thought it has to be rbxl file to open it in roblox studio.
Just drag the file that you downloaded into the the workspace of your studio and it should automatically download…
I dragged the file into the workspace where all the games are, but it’s not showing.
Thanks, but the files won’t open because they are in a rbxm file instead of rbxl file.
Thanks, but is there any way to script that could change and equip the character?
I meant, server enables the script and done.