Tools not showing up on other players screen

So basically, im making an fps game but the problem is. that the guns dont show up on other players screen’s, i was on my alt and main and when i equipped a gun my alt couldnt see it. what do i do??

3 Likes

Are the tools server sided? or client sided

1 Like

i hope i didnt choose a wrong topic again.

1 Like

wdym. u mean like scripts inside the tools?

1 Like

Did u give the player the tools with a script or a local script

1 Like

local script. thats the problem probablly but idk how to fix it.

1 Like

U need to give the tools with a script for it to show to everyone

1 Like

how would i do that???,.,.,.,.,

1 Like

U just give the player the tools with a script

What does ur local script look like?

1 Like
local Backpack = player.Backpack
local Character = player.Character

script.Parent.MouseButton1Click:Connect(function()
	if not Backpack:FindFirstChild("AK101") or Character:FindFirstChild("AK101") then
		game.ReplicatedStorage.AK101:Clone().Parent =  game.Players.LocalPlayer.Backpack
	elseif Backpack:FindFirstChild("AK101") or Character:FindFirstChild("AK101") then
	end
end)```
1 Like

U just need to fire a event and specify what tool to give

1 Like

Just make a RemoteEvent in replicated storage and call it GunGiver
And then make a script in serverscriptservice and call it whatever u want and put this code inside:

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Event = ReplicatedStorage:WaitForChild("GunGiver")

Event.OnServerEvent:Connect(function(plr, ToolName)
	local Backpack = plr.Backpack
	local Character = plr.Character or plr.CharacterAdded

	if ReplicatedStorage:FindFirstChild(ToolName) then
		if not Backpack:FindFirstChild(ToolName) or Character:FindFirstChild(ToolName) then
			game.ReplicatedStorage[ToolName]:Clone().Parent = Backpack
		elseif Backpack:FindFirstChild(ToolName) or Character:FindFirstChild(ToolName) then
			return
		end
	else
		warn("Tool:",ToolName,"not found!")
	end
end)

And in the local script put this:

script.Parent.MouseButton1Click:Connect(function()
	game:GetService("ReplicatedStorage"):WaitForChild("GunGiver"):FireServer("AK101")
end)
1 Like