I'm trying to give a player all the tools if they have all the boxes checked. This isn't working.
--Aceta
local venom = game.Lighting.Venomshank
local dark = game.Lighting.Darkheart
local katana = game.Lighting.BlueKatana
local sword = game.Lighting.Sword
local debounce = true
function onTouch(hit)
if hit.Parent then
if hit.Parent:FindFirstChild('Humanoid')and debounce == true then
debounce = false
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
character = hit.Parent
character.Torso.CFrame = CFrame.new(Workspace.teleportation.Position+Vector3.new(math.random(1,10),math.random(1,10),math.random(1,10)))
sword:Clone().Parent = player.Backpack
if player.Venomshank.Value == true then
venom:Clone().Parent = player.Backpack
elseif player.Darkheart.Value == true then
dark:Clone().Parent = player.Backpack
elseif player.BlueKatana.Value == true then
katana:Clone().Parent = player.Backpack
end
debounce = true
end
end
end
script.Parent.Touched:connect(onTouch)

3 comments
Output?
None. It just gives the player one weapon instead of all.
Aceta I fixed it.