How would I be able to make a player have a forcefield until they begin to move, It’s almost 1am rn and I cant get on roblox studio so i dont have any code down. But what could i do to achieve this?
1 Like
Try this out:
local PS = game:GetService("Players")
PS.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
local hum = char:FindFirstChildWhichIsA("Humanoid")
local field = Instance.new("ForceField")
field.Parent = char
hum:GetPropertyChangedSignal("MoveDirection"):Once(function()
field:Destroy()
end)
end)
end)
1 Like
Forgot to say but this working, Thanks a lot!
Set it as the solution so that new readers won’t try to help you with this already fixed issue.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.