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: fixing this script up some!

Previous Thread :: Next Thread 
BrandonCpatrick is not online. BrandonCpatrick
Joined: 16 Apr 2009
Total Posts: 316
10 Mar 2012 02:34 PM
Aright so i need it so basically when you touch the brick if you have any p level under 3 you get this thing. Here is the script for what it looks like idk if this will help or not

if p.picklvl.Value == 3 then
p.ColorChanger.Value = BrickColor.new("Bright red")
script.Parent.Handle2.BrickColor = p.ColorChanger.Value

Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
10 Mar 2012 02:37 PM
Missing an end and has no touched event.
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
10 Mar 2012 02:39 PM
if p.picklvl.Value == 3 then
p.ColorChanger.Value = BrickColor.new("Bright red")
script.Parent.Handle2.BrickColor = p.ColorChanger.Value

script.Parent.Touched:connect(function(hit)
--script
end)
Report Abuse
BrandonCpatrick is not online. BrandonCpatrick
Joined: 16 Apr 2009
Total Posts: 316
10 Mar 2012 02:39 PM
can you edit it so ontouch it makes your plevel 3 if your level 1 or 2? thanks!!
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
10 Mar 2012 02:43 PM
This what you want?

game.Workspace.Part.Touched:connect(function(hit)
if hit.Parent.ClassName == "Player" then
playa = game.Players:GetPlayerFromCharacter(hit.Parent)
playa.leaderstats.Level.Value = playa.leaderstats.Level.Value + 1
end
end)

Report Abuse
BrandonCpatrick is not online. BrandonCpatrick
Joined: 16 Apr 2009
Total Posts: 316
10 Mar 2012 02:44 PM
no this script is almost perfect

if p.picklvl.Value == 3 then
p.ColorChanger.Value = BrickColor.new("Bright red")
script.Parent.Handle2.BrickColor = p.ColorChanger.Value
script.Parent.Touched:connect(function(hit)
--script
end)

but I need it so like instead of it = to 3 i want it to be if its 1 or 2 it makes it 3? see what I'm saying?
Report Abuse
BrandonCpatrick is not online. BrandonCpatrick
Joined: 16 Apr 2009
Total Posts: 316
10 Mar 2012 02:50 PM
please?
Report Abuse
BrandonCpatrick is not online. BrandonCpatrick
Joined: 16 Apr 2009
Total Posts: 316
10 Mar 2012 03:06 PM
would this be a working script?

if p.picklvl.Value == 1 then
p.picklvl.Value == 3
p.ColorChanger.Value = BrickColor.new("Bright red")
script.Parent.Handle2.BrickColor = p.ColorChanger.Value
elseif p.picklvl.Value == 2 then
p.picklvl.Value == 3
p.ColorChanger.Value = BrickColor.new("Bright red")
script.Parent.Handle2.BrickColor = p.ColorChanger.Value

script.Parent.Touched:connect(function(hit)
--script
end)
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