Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
ImfaoXD 158
8 years ago

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

Log in to vote
1
Answered by
Vezious 310 Moderation Voter
8 years ago
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
0
Thank you, bro! I'll give it a try. :) ImfaoXD 158 — 8y
Ad
Log in to vote
0
Answered by 8 years ago

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.

0
Alright bro, I'll give it a try. Thank you for the tips. :) ImfaoXD 158 — 8y
0
No problem! Hope I successfully answered your question. AncientEdits 30 — 8y

Answer this question