So i made have a local script that connects to a proximity prompt in starter gui, to open the gui and anchor the player, the issue is that when i added forcefield it would be client sided and people would still get killed while in the gui
If i could get some ideas or advice, to make forcefield work, but also not changing the whole script that would be awesome
put the RemoteEvent in ReplicatedStorage and server script in ServerScriptService.
on the line where you put the forcefield, fire the server with some arguments to let it know you want to give it and anchor the player, and a different argument for when you want it removed
personally i’d just use different arguments for them
client: remote:FireServer(true)
server:
remote.OnServerEvent:Connect(function(player, argument)
if argument==true then
-- give the player the forcefield
else
-- remove the forcefield
end
end)