I cant get this forcefield Union to be a part of the players torso, but it wont work... help? i put this in the players starter inventory but it still wont work
FF = ReplicatedStorage.FORCE
local playr = game.Players.LocalPlayer
local mouse = playr:GetMouse()
local uis = game:GetService("UserInputService")
local animationTrack = playr.Character.Humanoid:LoadAnimation(animation)
function FFON(key,gp)
if key.KeyCode == Enum.KeyCode.F and gp == false then
local clone = FF:Clone()
FF.parent = playr.torso XYZ position
end
end
uis.InputBegan:connect(FFON)
function forcefieldoff(key)
if key.KeyCode == Enum.KeyCode.F and gp == false then
playr.torso:findFirstChild(FORCE)
if found then
playr.torso.FORCE:Destroy()
end
end
end
uis.InputEnded:connect(forcefieldoff)
