✓ Accepted answer
To give yourself a weapon you need to connect a function when your player is added and when your character is added that gives you the item that you want. You also want to clone the weapon after your character has respawned.
local PlayerService = game:GetService("Players")
local gun =
game.Players.PlayerAdded:Connect(function(player)
plr.CharacterAdded:Connect(function(char)
if char.Name == "SnakeInTheBoots" then
local cloned = gun:Clone()
cloned.Parent = PlayerService.SnakeInTheBoots:WaitForChild("Backpack")
end
end)
end)
2 comments
and gun is defined by the way
local gun = script.Parent.Parent.OwnerGun:Clone()