I am making a recreation of Script Warfare which has been recently shut down, however once you equip a script and start fighting, once you die or hit the "Respawn" button then you cannot re-equip any items.

This is also the same for if you respawn or reset even before you equip anything, after the point of death, you cannot re-equip items.

Any fixes? This is what the equip script looks like in the GUI

Noob Bat Example

local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local gameGui = playerGui:WaitForChild("GameGui")
local gameFrame = gameGui.GameFrame
local scriptsHolder = gameFrame.ScriptsHolder
local nukes = script.Parent
local backpack = player:WaitForChild("Backpack")
local lighting = game:GetService("Lighting")
local starterPack = game:GetService("StarterPack")

local soundScape = game.Soundscape

local click = soundScape.Click
local errors = soundScape.Errors

nukes.MouseButton1Click:Connect(function(onClicked)
	wait()
	if backpack:FindFirstChild("NoobBat") or player.StarterGear:FindFirstChild("NoobBat") or game.Workspace[player.Name]:FindFirstChild("NoobBat") then
		errors:Play()
	else
		click:Play()
		lighting.NoobBat:Clone().Parent = backpack
		lighting.NoobBat:Clone().Parent = player.StarterGear
	end
end)

Thanks, any help is appreciated!

1 comment

0

This most likely has to do with the NoobBat script, In the original game when a player died they had to choose their weapon again. This is probably because the NoobBat script doesn't play very well with StarterGear