Help needed with script

make sure you specify what the player is:

Player = game.Players.LocalPlayer
Character = Player.Character
Humanoid = Character:WaitForChild("Humanoid")

alr

poop poop poop poop poop poop poop

Change from Player.WalkSpeed to Humanoid.WalkSpeed

plus, you havent specified what the RemoteEvents are and what they do, fix that

Change *= to just * and == to just =

alright

d21348971234712

`

still there is error

bigfatpooponyourheadhahahahahah

I changed == to just equal but it still says that the “=” is error and the close bracket is error.

script.Parent.Unequipped:Connect(function()

Local hum = script.Parent.Parent.Humanoid

hum.ParticleEmitter.Parent = script.Parent.Handle

hum.WalkSpeed = 16

end)

Ok idk why you did .Player but that was one of the problems. Also you did ParticleEmitter = script.Parent.Handle instead of ParticleEmitter.Parent = script.Parent.Handle

I’m on mobile so I can’t test this but try it

1 Like

We have Explained the Issue and you are giving him the same issue:

the player. was the changed version of my script that caira made but they changed it to humanoid.

@sufsty Can you show your scripts please?

I thought unequipped fires before it gets put back into your backpack but i have an idea now

yes
Screenshot 2022-11-13 at 16.17.40

I found your error, you forgot to add a bracket where end is (Actually i forgot lol), instead of end, its end)

script.Parent.Unequipped:Connect(function()
script.Parent.unequipping:FireServer(Humanoid.WalkSpeed = 16)
end)

Use two equal operators == when checking if it is equal to a value

script.Parent.Unequipped:Connect(function()
    script.Parent.unequip:FireServer(Humanoid.WalkSpeed == 16)
end)
1 Like

Thats not the issue, I forgot to add a bracket where end is, == is only used when using an if, while, repeat until, etc, not when changing a Value

You can’t assign values when you send them as arguments. It even shows it as an error.

Oh yeah, youre right, so this:

script.Parent.Fire.OnServerEvent:Connect(function(Plr, Speed)
script.Parent.Handle.ParticleEmitter.Enabled = true
script.Parent.Handle.ParticleEmitter.Parent = Plr.Character.HumanoidRootPart
Plr.Character:WaitForChild("Humanoid").WalkSpeed = Speed

end)

script.Parent.Unequipping.OnServerEvent:Connect(function(Plr, Speed)
script.Parent.Handle.ParticleEmitter.Enabled = false
script.Parent.Handle.ParticleEmitter.Parent = script.Parent.Handle
Plr.Character:WaitForChild("Humanoid").WalkSpeed = Speed
end)
script.Parent.Activated:Connect(function()
script.Parent.Fire:FireServer(16 * 4)
end)
script.Parent.Unequipped:Connect(function()
script.Parent.Unequipping:FireServer(16)
end)

Edit: oops, forgot to add the Variable in the function

oh i thanks you so much! thank you