I spent 20 mins doing this so you don't have to: local RR = game:GetService('ReplicatedStorage') local Zone = require(RR.Zone) local fightzone = Zone.new(workspace.Part)
fightzone.playerEntered:Connect(function(player) print(("%s entered the zone!"):format(player.Name))
if not player.Backpack:FindFirstChild('ClassicSword') and not player.Character:FindFirstChild('ClassicSword') then
local sword = RR.ClassicSword:Clone() sword.Parent = player.Backpack
end end) fightzone.playerExited:Connect(function(player) print(("%s exited the zone!"):format(player.Name))
for _, tool in pairs(player.Backpack:GetChildren()) do if tool:IsA('Tool') and tool.Name == 'ClassicSword' then tool:Destroy() end end for _, tool in pairs(player.Character:GetChildren()) do if tool:IsA('Tool') and tool.Name == 'ClassicSword' then tool:Destroy() end end
Your tutorials save my life 🙏🙏
Good sh man!!
I spent 20 mins doing this so you don't have to:
local RR = game:GetService('ReplicatedStorage')
local Zone = require(RR.Zone)
local fightzone = Zone.new(workspace.Part)
fightzone.playerEntered:Connect(function(player)
print(("%s entered the zone!"):format(player.Name))
if not player.Backpack:FindFirstChild('ClassicSword') and not player.Character:FindFirstChild('ClassicSword') then
local sword = RR.ClassicSword:Clone()
sword.Parent = player.Backpack
end
end)
fightzone.playerExited:Connect(function(player)
print(("%s exited the zone!"):format(player.Name))
for _, tool in pairs(player.Backpack:GetChildren()) do
if tool:IsA('Tool') and tool.Name == 'ClassicSword' then
tool:Destroy()
end
end
for _, tool in pairs(player.Character:GetChildren()) do
if tool:IsA('Tool') and tool.Name == 'ClassicSword' then
tool:Destroy()
end
end
end)
lol
underrated bro
keep up the grind bro
But how do I make the little arrow things
little arrow things?
@@Plehlowla i think hes talking about in script arrows are pointing towards code