Help needed with script

I managed to do the growth tool but now I am doing the speed. the speed one is working and it is a server script, but when I unequipped it the speed does not stop.


All help is appreciated :+1: I would really be happy If someone could help me solve this.

Any errors in the output ?
I think there’s an error in the 2nd line of 2nd function

1 Like

I’ll check

filler text dsadghasgdjhasgda

There is an error on the 14th line. I’ll screen shot it for you

Ya I expected an error in this line, can you share the error ?

1 Like

Yes

Hey, instead of a screenshot of your code can u use a codeblock??

1 Like

What is that? I am new to scripting and all this new technology

replace that line with

game.Players.LocalPlayer.Character.Humanoid.ParticleEmitter.Parent = script.Parent.Handle```

Its simply pasteing your code in your post. Just find the tab that is beside the quotes and it has arrows. Click and paste your code into it.

alr

fdjskafhajsdhfkjdsadsasadsadasdasdasdasd

copy the code, use ``` to open and same to close and put your code inside it

local speed = 4

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”)
game.Players.LocalPlayer.Character.Humanoid.ParticleEmitter.Parent = script.Parent.Handle
hum.WalkSpeed = 16

end)

you kinda got it make sure all your code is in the block

2 Likes

you got any error or did it work ? @sufsty

I’m gonna play the game and test right now

alright

1 Like

It’s not working still. It’s still the same error