What do you want to achieve? Keep it simple and clear!
So ive been trying to help a friend with a weird bug ive never seen or encountered before →
What is the issue? Include screenshots / videos if possible!
Ill just quote what he said:
basically when the net tool is used, players get flung out of the map at an incredibly high velocity
This ONLY seems to happen when he has a tool equipped… Weve also turned off “Massless” to see if that worked. But that made no difference I even tried making a custom script for him that used Collison groups to disable player collisons but… That didnt work either.
Weve been trying for hours now and cant seem to find the root cause. So any help would be so much appreciated!! :
I dont think its the code thats the problem. But sure heres a modified version i created for him some mins ago:
local Plr = script.Parent.Parent.Parent
local Char = Plr.Character
local Hum = Char:WaitForChild("Humanoid")
local Animator = Hum:WaitForChild("Animator")
local HitConnection = nil
local Active = false
local Anim = script.Parent:WaitForChild("Swoosh")
local Sound = script.Parent:WaitForChild("Handle")["Swoosh!"]
local function OnHit(Hit)
if not Hit:IsDescendantOf(Char) then
if Hit.Parent:FindFirstChild("Humanoid") then
Hit.Parent.Humanoid:TakeDamage(math.random(10, 20))
HitConnection:Disconnect()
end
end
end
script.Parent.Activated:Connect(function()
if Active == false then
Active = true
HitConnection = script.Parent.Handle.Touched:Connect(OnHit)
local Delay = Animator:LoadAnimation(Anim)
Delay:Play()
Sound:Play()
Delay.Stopped:Wait()
if HitConnection then
HitConnection:Disconnect()
end
Active = false
end
end)
He said that his Humanoid(Inside the Human characters) are called zombies?. I know its an outdated way. But i dont want to seem like that person who has to point out a lot of stuff
Thats not true at all… you will only anchor once you equip the tool, if the Handle part is anchored… other than that, its business as usual. And you wont just anchor, the tool will be anchored and you’re stuck to it… then if u unequip, you will unanchor from it.