Hi,
Im making a game with characters u can buy in a shop and stuff and one character needs to have a weapon but how do i make him have the weapon when you equip him without needing to pick up the weapon like most of the tutorials showed. any help would be appreciated…
You can try:
Remote.OnServerEvent:Connect(function(plr,ToolName)
local Tool = game.ServerStorage:FindFirstChild(ToolName)
Tool:Clone().Parent = plr.Backpack
end
1 Like
sorry for late reply and sorry to ask but do i use a local script for that or not? also do i put it in the serverscriptstorage or replicated storage??
That is server script as you can see it has
OnServerEvent
Put in ServerScriptService
Tool put inside of ServerStorage also RemoteEvent change with your system’s Remote Event.
Keep in mind that if you don’t make security checks hackers can easily mainupulate Shop System.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.