#how to make a custom forcefield spawn?
9 messages · Page 1 of 1 (latest)
local Players = game:GetService("Players")
local FORCE_FIELD_DURATION = 15
local function giveForcefield(player, duration)
local character = player.Character
if character then
local forceField = Instance.new("ForceField")
forceField.Visible = true
forceField.Parent = character
if duration then
task.delay(duration, function()
if forceField then
forceField:Destroy()
end
end)
end
end
end
that is for all players, if you want it for an specific one you will have to tweak it according to your use case
how do u add ur own forcefield
where do u add ur forcefield
that u made?
its in the script. it automatically appends it to the player
is it sss?
sss?