Here’s the script
local Player = game:GetService(“Players”).LocalPlayer or game.Players.PlayerAdded
local Charactere = Player.Character or Player.CharacterAdded:Wait()
local Mouse = Player:GetMouse()
local YCA = true
local UIS = game:GetService(“UserInputService”)
UIS.InputBegan:Connect(function(input,IsTyping)
if not IsTyping then
if input.KeyCode == Enum.KeyCode.F then
YCA = false
Charactere.HumanoidRootPart.Anchored = true
Charactere.HumanoidRootPart.CanCollide = false
while YCA == false do
wait()
Charactere.HumanoidRootPart.CFrame = CFrame.new(Charactere.HumanoidRootPart.Position , Mouse.Hit.p)
end
end
end
end)
UIS.InputEnded:Connect(function(input,IsTyping)
if not IsTyping then
if input.KeyCode == Enum.KeyCode.F then
YCA = true
Charactere.HumanoidRootPart.Anchored = false
Charactere.HumanoidRootPart.CanCollide = true
end
end
end)
I think it has to do with when the character move is played, that it basically shuts down and basically falls to the ground. Just like if you would fly and your face is towards the ground, you’d fall as well like that. Maybe set a max radius of the XYZ Axis?
I think it is because of the angle of which your character is at after leaving flight mode. This angle causes Roblox to assume that you are in a falling state and therefore drops your character like a brick. I could be wrong though. Try to go off of fly mode while being upright and see what happens.
local Player = game:GetService(“Players”).LocalPlayer or game.Players.PlayerAdded
local Charactere = Player.Character or Player.CharacterAdded:Wait()
local Mouse = Player:GetMouse()
local YCA = true
local UIS = game:GetService(“UserInputService”)
UIS.InputBegan:Connect(function(input,IsTyping)
if not IsTyping then
if input.KeyCode == Enum.KeyCode.F then
YCA = false
Charactere.HumanoidRootPart.Anchored = true
Charactere.HumanoidRootPart.CanCollide = false
while YCA == false do
wait()
Charactere.HumanoidRootPart.CFrame = CFrame.new(Charactere.HumanoidRootPart.Position , Vector3.new(Mouse.Hit.p.X, Charactere.HumanoidRootPart.Position, Mouse.Hit.pZ))
end
end
end
end)
UIS.InputEnded:Connect(function(input,IsTyping)
if not IsTyping then
if input.KeyCode == Enum.KeyCode.F then
YCA = true
Charactere.HumanoidRootPart.Anchored = false
Charactere.HumanoidRootPart.CanCollide = true
end
end
end)