So earlier i asked how i could make the character stop while throwing a fireball. So i tried to anchor the torso like this, but it doesn't seem to work. Any help would be appreciated.
local Player = game.Players.LocalPlayer
local torso = Player.Character:FindFirstChild("Torso")
local Mouse = Player:GetMouse()
local RemoteEvent = game.Workspace.Fired
local UIS = game:GetService("UserInputService")
local Debounce = false
UIS.InputBegan:Connect(function(Input)
if Input.KeyCode == Enum.KeyCode.R then
if Debounce == true then return end
torso.Anchored = true
wait (0.5)
torso.Anchored = false
RemoteEvent:FireServer(Debounce)
end
end)

3 comments
I tried your first method but it said Players.hh9man.PlayerScripts.Fireball:11: attempt to get length of global 'parts' (a nil value)
You have to define
parts. Do local parts = Player.Character:GetChildren()I did that and the script still doesnt work, do you think you could type exactly how you would put it? I would appreciate it.