I’m pretty new to scripting and I want to make an ability that creates a forcefield around the player for 5 seconds (the regular roblox forcefield, not a custom one)
I’m not looking for a full script, I’m just looking for some directions to start the script
I don’t really like spoonfeeding code but it’s easier to do it like this ig…
local Debris = game:GetService("Debris")
local Player = game.Players.TargetName
function forcefield(Target)
local FF = Instance.new("ForceField")
FF.Parent = Target.Character
Debris:AddItem(FF, 5)
return FF -- in case you want to do something with it
end
forcefield(Player)