Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How Can I Make A Script That Gives A Players A Force Field While They Are In The Lobby?

How can I make a script that gives a players a force field while they are in the lobby from getting spawn kill by other players?. How can make the script gives a force field while a players are in the lobby?

2 answers

✓ Accepted answer
game.Players.PlayerAdded:connect(function(player)
	player.CharacterAdded:connect(function(character)
		Instance.new("ForceField",character)
	end)
end)


If this isn't what you asked for, too bad, this is not a request site and you didn't attempt to script it. Something I will tell you is, if your game is a game like, Mad Games, make it so when the player is teleported to the map, make the script remove the forcefield.

for i, v in pairs (player:GetChildren()) do
if v:IsA("ForceField") then
v:Destroy()
end

1 comment

0

Thank you, bro! I'll give it a try. :)

You should take an attempt at scripting this first, then allow us to give you some assistance with your code. Although, I will tell you that to do what you are asking you are going to need to have some way of checking what "Zone" the player is in and have it check until the player is out of the zone.

2 comments

0

Alright bro, I'll give it a try. Thank you for the tips. :)

0

No problem! Hope I successfully answered your question.

This discussion is preserved as it was. New answers, comments, and votes are closed.