Hello youtube! This tutorial i show u how to make ur own fighting game in roblox :D
Script -
local sword = game.ReplicatedStorage.Sword
script.Parent.TouchEnded:Connect(function(hit)
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
if plr.Backpack:FindFirstChild("Sword") then
plr.Backpack.Sword:Destroy()
local swordCOPY = sword:Clone()
swordCOPY.Parent = plr.Backpack
else
local swordCOPY = sword:Clone()
swordCOPY.Parent = plr.Backpack
end
end)
----------------------------------------------------------------------------------------------------------------------------------------------------
Music Credit: NCS
Track: Elektronomia - Limitless [NCS Release]
Music Provided By NoCopyrightSounds
Watch: • Elektronomia - Limitless | Progressive Hou...
Free Download / Stream: http://ncs.io/Elimitless
----------------------------------------------------------------------------------------------------------------------------------------------------