of     2   
chevron_rightchevron_rightchevron_right

xxCOSMICxx
#34250008Thursday, September 23, 2010 12:07 AM GMT

How would I make a forcefeild script for only me on enter?
DidYouSeeThatDog
#34250189Thursday, September 23, 2010 12:10 AM GMT

YoName = "xxCOSMICxx" game.Players.PlayerAdded:connect(function(v) if v.Name == YoName then repeat wait(); untill v.Character Instance.new("ForceField").Parent = v.Character; end end)
Graphicpro
#34250230Thursday, September 23, 2010 12:10 AM GMT

function onEnter(newPlyr) if newPlyr.Name == xxCOSMICxx then Instance.new("ForceField",newPlyr) end end game.Players.PlayerAdded:connect(onEnter)
xxCOSMICxx
#34250316Thursday, September 23, 2010 12:11 AM GMT

Thanks
crazypotato4
#34250388Thursday, September 23, 2010 12:12 AM GMT

DidYouSeeThatDog's is better, it waits for the character so that it won't error.
zeke505
#34250571Thursday, September 23, 2010 12:15 AM GMT

yoname = "NAME" game.Players.PlayerAdded:connect(function(plyr) plyr.CharacterAdded:connect(function(char) if char.Name == yoname then Instance.new("ForceField", char) end end) end) :D
crazypotato4
#34250747Thursday, September 23, 2010 12:17 AM GMT

and now zeke's is better, because it would happen every time you respawn, along with the first time you enter the game.
DidYouSeeThatDog
#34250766Thursday, September 23, 2010 12:17 AM GMT

'DidYouSeeThatDog's is better,' BOOHYEAH! (clears throught) um yea, thanks. (goes back to writing x86)
DidYouSeeThatDog
#34250877Thursday, September 23, 2010 12:19 AM GMT

yoname = "NAME" game.Players.PlayerAdded:connect(function(plyr) if plyr.Name == yoname then plyr.CharacterAdded:connect(function(char) Instance.new("ForceField", char) end) end end) -- doesn't connect a function to EVERY player, making it more efficient :3
zeke505
#34250974Thursday, September 23, 2010 12:20 AM GMT

@DYSTD ...not really. Well, I guess. But mine would still work just as good as that.
zeke505
#34251066Thursday, September 23, 2010 12:21 AM GMT

ONE LINE, BOOYAH: yoname = "NAME" game.Players.PlayerAdded:connect(function(plyr) if plyr.Name == yoname then plyr.CharacterAdded:connect(function(char) Instance.new("ForceField", char) end) end end)
xxCOSMICxx
#34251322Thursday, September 23, 2010 12:23 AM GMT

The scripts dont work...
DidYouSeeThatDog
#34251373Thursday, September 23, 2010 12:24 AM GMT

Narbcake, lua (like most languaes (if not all)) ignores white space ( spaces, new lines, stuff like that), so they will all be interpeted as 1 line. Also, mine is still better, because like I said, it only connects an event (WHICH IS PRESIOUS MEMORY) to the required person.
zeke505
#34251421Thursday, September 23, 2010 12:24 AM GMT

yoname = "xxCOSMICxx" game.Players.PlayerAdded:connect(function(plyr) if plyr.Name == yoname then plyr.CharacterAdded:connect(function(char) Instance.new("ForceField", char) end) end end)
zeke505
#34251489Thursday, September 23, 2010 12:25 AM GMT

@DYSTD It would still work, narbcake. :3 If it doesn't explain how my SB works. :D
DidYouSeeThatDog
#34251607Thursday, September 23, 2010 12:26 AM GMT

I know it would work, I'm saying removing all the -ignored- whitespace does nothing, and copying mine ish mean >:O
zeke505
#34251658Thursday, September 23, 2010 12:27 AM GMT

I didn't copy. :<
xxCOSMICxx
#34251766Thursday, September 23, 2010 12:28 AM GMT

Ok I copyed it and put my name were im suppose to i saved the game left and went back in then it dinent work i checed explorer>workspace and script was gone
zeke505
#34251872Thursday, September 23, 2010 12:30 AM GMT

Your script must have archivable unchecked.
xxCOSMICxx
#34252185Thursday, September 23, 2010 12:33 AM GMT

??
xxCOSMICxx
#34252243Thursday, September 23, 2010 12:34 AM GMT

Its checked
zeke505
#34252294Thursday, September 23, 2010 12:35 AM GMT

Oh, erm... I dunno then. :P
crazypotato4
#34252303Thursday, September 23, 2010 12:35 AM GMT

and like he said, it must be un checked. note the "un" prefix.
xxCOSMICxx
#34252458Thursday, September 23, 2010 12:37 AM GMT

Its checked prefix "ch"ecked
crazypotato4
#34252592Thursday, September 23, 2010 12:38 AM GMT

do you know what a prefix is? and can you understand english? make it so that there's no check in the little box next to archivable.

    of     2   
chevron_rightchevron_rightchevron_right