Ok you see i made this mob fighting style like when u touch a mob u initiate battle with him the mob clone thing works and the teleport works but i dont get why doesnt the gear get cloned with the player and the song doesnt play here are both of the scripts Gear Script:
game.Workspace["The Void"].Torso.Touched:connect(function(part)
local Player = game.Players:GetPlayerFromCharacter(part.Parent)
local Gear = game.ServerStorage.ClassicSword
local BackPack = Player:WaitForChild("Backpack")
local ClonedGear = Gear:Clone()
ClonedGear.Parent = BackPack
end)
Song Script:
script.Parent.Torso.Touched:Connect(function(part)
local Player = game.Players:GetPlayerFromCharacter(part.Parent)
Zombie = game.Lighting.Void:Clone()
Zombie.Parent = workspace
Zombie:MakeJoints()
Zombie.HumanoidRootPart.CFrame = game.Workspace.TpPart.CFrame * CFrame.new(5,0,0)
game.SoundService.Sound:Play()
Zombie.Died:connect(function()
Player.Character.HumanoidRootPart.CFrame = game.Workspace.Back.CFrame * CFrame.new(0,5,0)
game.SoundService.Sound:Stop()
Player.BackPack.ClassicSword:Destroy()
end)
end)
Also can u tell me if the Zombie.Died things work because i cant really test it without killing them also do u know how to fix this script because it keeps spawning multiple zombies not 1 only
script.Parent.Torso.Touched:Connect(function(part)
for _, v in pairs(script.Parent:GetChildren()) do
v:Destroy()
Zom:Destroy()
wait (5)
Zom = game.Lighting.Void:Clone()
Zom.Parent = workspace
Zom.CFrame = game.Workspace.MobBack.CFrame * CFrame.new(0,3,0)
Zom.Configurations.AttackDamage.Value = 0
Zom.Configurations.AttackRange.Value = 0
Zom.Torso.Anchored = true
Zom.Humanoid.MaxHealth = 100000000000000
Zom.Humanoid.Health = 1000000000000000
Zom.Configurations.AttackFrequency.Value = 0
end
end)
Thanks if you are looking into this i really appreciate the help

5 comments
IS ANYONE GONNA HELP ME OR WHAT WHY ARE U NOT POSTING ANYTHING
Well could we get a video or pictures of the fighting style, and please dont shout the people are helping.
Also we are not here to fix your entire script, but we can help and give suggestion on the problem
ill give a brief description... look u get tped there is a song that plays u get a weapon automatically given to u depending on what u equip and u fight the mobs and when they die u tp back with exp and gold and materials k?
why ppl take so long to answer