|
| 08 Feb 2012 05:17 PM |
local player = game.Players.LocalPlayer;
gui.MouseButton1Click:connect(function() player.TeamColor = Color3.new(0/255,255/255,255/255) player.Character.Humanoid.Health = 0 end)
---
The output says no error, yet it performs nothing. Anyone mind correcting me?
-Virtualdarks |
|
|
| Report Abuse |
|
|
Colt324
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 1562 |
|
|
| 08 Feb 2012 05:18 PM |
| Shouldn't be a ; I'm pretty sure. |
|
|
| Report Abuse |
|
|
|
| 08 Feb 2012 05:19 PM |
@Colt, that's a method of coding. Please make more..Reliable remarks.
@OP; You never defined gui. |
|
|
| Report Abuse |
|
|
|
| 08 Feb 2012 05:20 PM |
';' is fine, it doesn't really matter, it just means the end of a line which Lua automatically does. Try this?
local player = game.Players.LocalPlayer;
gui.MouseButton1Click:connect(function() player.TeamColor = Color3.new(r/255,g/255,b/255) player.Character.Humanoid.Health = 0 end)
~I script Awesome sauce to go with my spaghetti code |
|
|
| Report Abuse |
|
|
|
| 08 Feb 2012 05:24 PM |
local player = game.Players.LocalPlayer; script.Parent.MouseButton1Click:connect(function() player.TeamColor = Color3.new(r/255,g/255,b/255) player.Character.BreakJoints() end)
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 08 Feb 2012 05:25 PM |
TeamColor is a BrickColor value
player.TeamColor = BrickColor.new("Blah") |
|
|
| Report Abuse |
|
|
|
| 08 Feb 2012 05:28 PM |
It works, Crazyman32. :D Thanks. :)
-Virtualdarks |
|
|
| Report Abuse |
|
|
|
| 08 Feb 2012 05:29 PM |
@Crazy
I knew that...
local player = game.Players.LocalPlayer; script.Parent.MouseButton1Click:connect(function() player.TeamColor = BrickColor.new(Really black) --Or whatever player.Character.BreakJoints() end)
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 08 Feb 2012 05:29 PM |
Oh.. and my scripts failed anyways :c
".BreakJoints"...
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 08 Feb 2012 05:29 PM |
No problem! It should have raised an error for that though.
Something like "Expected BrickColor; got Color3 value" |
|
|
| Report Abuse |
|
|