|
| 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
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 10 Mar 2012 02:37 PM |
| Missing an end and has no touched event. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|