|
| 11 Oct 2011 02:46 PM |
local user = "MrFahrenheit" local shirt = "http://www.roblox.com/Super-Human-item?id=63543118"
function onTouched(hit) local character = hit.Parent local humanoid = character:findFirstChild("Humanoid")
if character:FindFirstChild("Humanoid") then if character.Name:lower == user:lower(MrFahrenheit) or character.ShirtGraphic.Graphic == shirt then character.TeamColor = "Dark green" print "team changed" then wait(.1) humanoid.Health = 0 character.TeamColor = "Dark green" print "team changed back-up" humanoid.Walkspeed = 20
end end
script.Parent.Touched:connect(onTouched)
Thanks. |
|
|
| Report Abuse |
|
|
1Ra
|
  |
| Joined: 02 May 2010 |
| Total Posts: 2400 |
|
|
| 11 Oct 2011 02:49 PM |
if character.Name:lower == user:lower(MrFahrenheit) or
-----
if string.lower(character.Name) == string.lower(user) or |
|
|
| Report Abuse |
|
|
1Ra
|
  |
| Joined: 02 May 2010 |
| Total Posts: 2400 |
|
|
| 11 Oct 2011 02:50 PM |
Character.TeamColor = "Dark green"
-----
Character.TeamColor = BrickColor.new("Dark green") |
|
|
| Report Abuse |
|
|
1Ra
|
  |
| Joined: 02 May 2010 |
| Total Posts: 2400 |
|
|
| 11 Oct 2011 02:51 PM |
| and it should be player.TeamColor. |
|
|
| Report Abuse |
|
|
Glommus
|
  |
| Joined: 06 Oct 2011 |
| Total Posts: 150 |
|
|
| 11 Oct 2011 02:56 PM |
local user = "MrFahrenheit" local shirt = "http://www.roblox.com/Super-Human-item?id=63543118" function onTouched(hit) local character = hit.Parent if character then local humanoid = character:findFirstChild("Humanoid") if humanoid then if character.Name:lower() == user:lower() or character.ShirtGraphic.Graphic == shirt then game.Players:GetPlayerFromCharacter(character).TeamColor = BrickColor.new("Dark green") print("Team changed.") wait(.1) humanoid.Health = 0 print("Team changed back up.") humanoid.WalkSpeed = 20 end end end end script.Parent.Touched:connect(onTouched)
|
|
|
| Report Abuse |
|
|
| |
|
Glommus
|
  |
| Joined: 06 Oct 2011 |
| Total Posts: 150 |
|
|
| 11 Oct 2011 03:01 PM |
| Are you sure you got the ASSET of that T-Shirt? |
|
|
| Report Abuse |
|
|
|
| 11 Oct 2011 03:04 PM |
ohderp
I'm used to retexture so I just used the image ID. |
|
|
| Report Abuse |
|
|
|
| 11 Oct 2011 03:05 PM |
http://www.roblox.com/asset/?id=
local user = "MrFahrenheit" local shirt = "http://www.roblox.com/asset/?id=63543118" --Almost Glomm. function onTouched(hit) local character = hit.Parent if character then local humanoid = character:findFirstChild("Humanoid") if humanoid then if character.Name:lower() == user:lower() or character.ShirtGraphic.Graphic == shirt then game.Players:GetPlayerFromCharacter(character).TeamColor = BrickColor.new("Dark green") print("Team changed.") wait(.1) humanoid.Health = 0 print("Team changed back up.") humanoid.WalkSpeed = 20 end end end end script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
Fl0x
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 5169 |
|
| |
|
|
| 11 Oct 2011 03:06 PM |
| @Fl0x o.o Never seen that be for... |
|
|
| Report Abuse |
|
|
Fl0x
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 5169 |
|
|
| 11 Oct 2011 03:07 PM |
It isn't really known, but it's useful. http://wiki.roblox.com/index.php/Content#rbxassetid:.2F.2FassetId |
|
|
| Report Abuse |
|
|
|
| 11 Oct 2011 03:09 PM |
| Wow didnt really think it was a method. |
|
|
| Report Abuse |
|
|
|
| 11 Oct 2011 03:09 PM |
Huzzah it works!
Just need to adjust the timer for walkspeed change. |
|
|
| Report Abuse |
|
|
|
| 11 Oct 2011 03:12 PM |
| Thanks for the Thank you -.-. |
|
|
| Report Abuse |
|
|
|
| 11 Oct 2011 03:19 PM |
:c
sorry
Your help IS appreciated. |
|
|
| Report Abuse |
|
|
| |
|
|
| 12 Oct 2011 08:32 AM |
| is it a LocalScript or a regular skript? |
|
|
| Report Abuse |
|
|