I have 2 remote events, one to make the character be anchored, and the other to unanchor it. However, for some reason, when the 2nd remote event fires, it doesn't unanchor and my character looks like its stuttering. Of course, there's more in the script, but it's just abilities and stuff, which is un relevant.
Local Script
game.ReplicatedStorage.FruitRemotes.GomuGomu.Gatling:FireServer(mouse.Hit)
gumGatling = UIS.InputEnded:Connect(function(Input, IsTyping)
if not IsTyping then
if Input.KeyCode == Enum.KeyCode.C then
game.ReplicatedStorage.FruitRemotes.GomuGomu.GatlingStop:FireServer(mouse.Hit, script.Parent)
gumGatling:Disconnect()
end
end
end)
Server Script
game.ReplicatedStorage.FruitRemotes.GomuGomu.Gatling.OnServerEvent:Connect(function(player, hit)
character.HumanoidRootPart.Anchored = true
end)
game.ReplicatedStorage.FruitRemotes.GomuGomu.GatlingStop.OnServerEvent:Connect(function(player, hit, fruit)
character.HumanoidRootPart.Anchored = false
end)
If I show the entire script, it would be pretty overwhelming, so I just showed a simple example. But just for context, when the character is anchored, an ability starts running, but when they let go of the key, it deletes the ability, stops the animation, and unanchored the character, but of course, for some reason, doesn't anchor... Any possibilities why?

2 comments
are you sure that ur character can get anchored
I meant HumanoidRootPart, sorry