generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Can somebody fix this script?

Previous Thread :: Next Thread 
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
16 Jan 2013 02:30 PM
Info: Hi. Im working on a new game called Destroy the Objects. a Forcefield is required on enter so people can't get rocketed.

Script that needs fixing:

wait(1)
game.Players.Instance.new.("ForceField")


If anybody reports a fixed forcefield script, otherwise perm-forcefield, would be a big help and mentioned in my game's description.
Report Abuse
blobbyblob is not online. blobbyblob
Joined: 29 Oct 2008
Total Posts: 12165
16 Jan 2013 02:35 PM
Make sure it's a local script and put it in the starterpack.

wait(1);
Instance.new("ForceField", game.Players.LocalPlayer.Character);
Report Abuse
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
16 Jan 2013 02:38 PM
Thank you. :)
Report Abuse
UnequaledDonovan1 is not online. UnequaledDonovan1
Joined: 28 Oct 2012
Total Posts: 3909
16 Jan 2013 02:39 PM
game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(char)
game.Lighting.ForceField:Clone.Parent = char
end)
end)
Report Abuse
UnequaledDonovan1 is not online. UnequaledDonovan1
Joined: 28 Oct 2012
Total Posts: 3909
16 Jan 2013 02:40 PM
wait i gotta fix the clone thing
Report Abuse
UnequaledDonovan1 is not online. UnequaledDonovan1
Joined: 28 Oct 2012
Total Posts: 3909
16 Jan 2013 02:40 PM
-- here:
game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(char)
game.Lighting.ForceField:Clone().Parent = char
end)
end)
-- ok this is the script!
Report Abuse
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
16 Jan 2013 02:41 PM
Why would a forcefield be in lighting?
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
16 Jan 2013 02:42 PM
@unequal. It's actually more efficient to create new force field, than copying it from lighting.
Report Abuse
UnequaledDonovan1 is not online. UnequaledDonovan1
Joined: 28 Oct 2012
Total Posts: 3909
16 Jan 2013 02:42 PM
thats the service i use for cloning things to put in game. workspace
Report Abuse
UnequaledDonovan1 is not online. UnequaledDonovan1
Joined: 28 Oct 2012
Total Posts: 3909
16 Jan 2013 02:43 PM
ok
=)
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
16 Jan 2013 02:43 PM
But not simple objects like force-field...
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
16 Jan 2013 03:31 PM
@OP;

I believe you can edit FF time on the spawns.
Report Abuse
UnequaledDonovan1 is not online. UnequaledDonovan1
Joined: 28 Oct 2012
Total Posts: 3909
16 Jan 2013 03:38 PM
you can
Report Abuse
blobbyblob is not online. blobbyblob
Joined: 29 Oct 2008
Total Posts: 12165
16 Jan 2013 05:19 PM
But I don't think you can edit it to be infinity, haha.
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
16 Jan 2013 07:19 PM
Spawn.ForceFieldTime = math.huge;
Report Abuse
UnequaledDonovan1 is not online. UnequaledDonovan1
Joined: 28 Oct 2012
Total Posts: 3909
20 Jan 2013 06:26 PM
LOL
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image