Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Weapon goes on the inentitory but it doesn't load?

If I put the weapon on StarterPack, it works fine, but with this script, it doesn't load, it goes on my character but it doesn't work, its like invisible

local player = game.Players.LocalPlayer
local tool = game.ReplicatedStorage.ShopTools.AK47
local cloneTool = tool:Clone()
script.Parent.MouseButton1Click:Connect(function(click)
  if player.leaderstats.Francs.Value >= 10 then
     player.leaderstats.Francs.Value = player.leaderstats.Francs.Value - 10
    end
    cloneTool.Parent = player.Backpack
end)

1 answer

if you change something with a local script it only changes for the client, not the whole server, so whenever you are changing a value in the server or creating a game object it needs to be done in a normal script if you want the server to recognize it.

1 comment

0

Thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.