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: spotlight

Previous Thread :: Next Thread 
TheTrollerIsBack001 is not online. TheTrollerIsBack001
Joined: 22 Apr 2014
Total Posts: 511
01 Nov 2014 01:36 AM
how do you make it so when ever anyone spawns, they get a light around them? (dynamic pls) and dont need to use a tool to on a light. Is there any script to make it so that whenever anyone comes in my game, they get like a light around them
Report Abuse
TheTrollerIsBack001 is not online. TheTrollerIsBack001
Joined: 22 Apr 2014
Total Posts: 511
01 Nov 2014 02:09 AM
BUMP
Report Abuse
powertool is not online. powertool
Joined: 01 Feb 2008
Total Posts: 3771
01 Nov 2014 02:12 AM
Please wait at least an hour between bumps.

Put this localscript into StarterGui.

function giveLight()
game.Players.LocalPlayer:WaitForChild("Character")
if game.Players.LocalPlayer.Character then
Light = Instance.new("SpotLight", game.Players.LocalPlayer.Character.HumanoidRootPart)
print("Lit up")
end end

giveLight()
Report Abuse
TheTrollerIsBack001 is not online. TheTrollerIsBack001
Joined: 22 Apr 2014
Total Posts: 511
01 Nov 2014 02:20 AM
the light doesnt come.
Report Abuse
powertool is not online. powertool
Joined: 01 Feb 2008
Total Posts: 3771
01 Nov 2014 02:21 AM
Tell me debuggish things.
Report Abuse
TheTrollerIsBack001 is not online. TheTrollerIsBack001
Joined: 22 Apr 2014
Total Posts: 511
01 Nov 2014 02:22 AM
what?
Report Abuse
TheTrollerIsBack001 is not online. TheTrollerIsBack001
Joined: 22 Apr 2014
Total Posts: 511
01 Nov 2014 02:23 AM
in this

then
Light = Instance.new("SpotLight", game.Pl
------

the light has a blue squiggly line underneath it,.
Report Abuse
powertool is not online. powertool
Joined: 01 Feb 2008
Total Posts: 3771
01 Nov 2014 02:24 AM
Disreg.

function giveLight()
repeat wait() until game.Players.LocalPlayer.Character
if game.Players.LocalPlayer.Character then
Light = Instance.new("PointLight", game.Players.LocalPlayer.Character.HumanoidRootPart)
print("Lit up")
end end

giveLight()
Report Abuse
TheTrollerIsBack001 is not online. TheTrollerIsBack001
Joined: 22 Apr 2014
Total Posts: 511
01 Nov 2014 02:28 AM
thanks!!! is there a way to make it a bit brighter?
Report Abuse
powertool is not online. powertool
Joined: 01 Feb 2008
Total Posts: 3771
01 Nov 2014 02:29 AM
http://wiki.roblox.com/index.php?title=API:Class/PointLight
Report Abuse
TheTrollerIsBack001 is not online. TheTrollerIsBack001
Joined: 22 Apr 2014
Total Posts: 511
01 Nov 2014 02:31 AM
.
Report Abuse
powertool is not online. powertool
Joined: 01 Feb 2008
Total Posts: 3771
01 Nov 2014 02:33 AM
I'm linking you to the api.

I gave you the base script for free.

It's really not hard to add a line in there to change the brightness.

Try this.

while true do Light.Brightness = 1.5 end
Report Abuse
noah is not online. noah
Joined: 11 Sep 2006
Total Posts: 18977
01 Nov 2014 02:35 AM
I avoid threads like this because the OP usually expects the code and won't give scripting a try either.
Report Abuse
powertool is not online. powertool
Joined: 01 Feb 2008
Total Posts: 3771
01 Nov 2014 02:36 AM
If he rage PMs me after his studio crashes, I'll tell him it's his fault for not recognizing the most basic noob logic bomb in the book.
Report Abuse
TheTrollerIsBack001 is not online. TheTrollerIsBack001
Joined: 22 Apr 2014
Total Posts: 511
01 Nov 2014 02:36 AM
which line do i add it in?
Report Abuse
powertool is not online. powertool
Joined: 01 Feb 2008
Total Posts: 3771
01 Nov 2014 02:36 AM
Right after Light = Instance.new(...
Report Abuse
TheTrollerIsBack001 is not online. TheTrollerIsBack001
Joined: 22 Apr 2014
Total Posts: 511
01 Nov 2014 02:39 AM
thanks it works
Report Abuse
TheTrollerIsBack001 is not online. TheTrollerIsBack001
Joined: 22 Apr 2014
Total Posts: 511
01 Nov 2014 02:41 AM
DOESNT WORK/. IM A NOOB
Report Abuse
powertool is not online. powertool
Joined: 01 Feb 2008
Total Posts: 3771
01 Nov 2014 02:43 AM
And that's why you should know how to script.

That's how I know you know nothing about scripting at all, 'cause you failed to recognize a "while true do end" bomb.

Learn to script, and you can fix this little script very fast.
Report Abuse
TheTrollerIsBack001 is not online. TheTrollerIsBack001
Joined: 22 Apr 2014
Total Posts: 511
01 Nov 2014 02:43 AM
wait...................................................................................... can you tell me the whole script again.
Report Abuse
TheTrollerIsBack001 is not online. TheTrollerIsBack001
Joined: 22 Apr 2014
Total Posts: 511
01 Nov 2014 02:45 AM
i didnt see that......... i copy and paste scripts so.,......
Report Abuse
TheTrollerIsBack001 is not online. TheTrollerIsBack001
Joined: 22 Apr 2014
Total Posts: 511
01 Nov 2014 02:47 AM
not responding noooooob
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