Help needed with script

try removing that line completely

ok

dddddsadfsdfaesfasdfasdfsadfasdfasdfasdfasdf

I did that and it just starts the game and I have super speed.

script.Parent.Activated:Connect(function()
local hum = script.Parent.Parent:FindFirstChild("Humanoid")
script.Parent.Handle.ParticleEmitter.Enabled = true
script.Parent.Handle.ParticleEmitter.Parent = script.Parent.Parent.HumanoidRootPart
hum.WalkSpeed *= speed
end)

script.Parent.Unequipped:Connect(function()
local hum = script.Parent.Parent:FindFirstChild(“Humanoid”)
script.Parent.Parent.HumanoidRootPart.ParticleEmitter.Parent = script.Parent.Handle
script.Parent.Handle.ParticleEmitter.Enabled = false
hum.WalkSpeed = 16

end)

try using this @sufsty Help needed with script - #25 by kittyPGR

1 Like

There is an error underneath the second (“Humanoid”)

I fixed it, You used diffrent speech marks

umm okay

1 Like

But when I unequipped it it still is not going back to the default speed. I feel like the particle emitter might be the problem but I’m not sure.

say me what have you tried to achieve in line 14…
and share a ss of explorer

1 Like

ok I will send some ss to you now

dd

I am trying to make the particle go back into the the handle and be unenabled on line 14.

and where is the particle emitter ?
child of handle ?

1 Like

It is in the handle at first, and then I made it so when you click it goes into your humanoidrootpart and then I made line 14 for the particle to go back into the handle of the tool.

when the tool has been unequipped

okay, give me a min. ill rewrite the code and send it

Thank you! You have been a real help! :smiley:

np :slight_smile:
try this

script.Parent.Activated:Connect(function()
local hum = script.Parent.Parent:FindFirstChild("Humanoid")
script.Parent.Handle.ParticleEmitter.Enabled = true
script.Parent.Handle.ParticleEmitter.Parent = script.Parent.Parent.HumanoidRootPart
hum.WalkSpeed *= speed
end)

script.Parent.Unequipped:Connect(function()
local hum = game.Player.LocalPlayer.Character.Humanoid
hum.Parent.HumanoidRootPart.ParticleEmitter.Parent = script.Parent.Handle
script.Parent.Handle.ParticleEmitter.Enabled = false
hum.WalkSpeed = 16
end)