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: Would this work???(3 lines)

Previous Thread :: Next Thread 
Amaz619305316 is not online. Amaz619305316
Joined: 27 Jul 2010
Total Posts: 2014
17 Aug 2011 09:52 PM
function: message()
if game.Workspace.Player.Team.Raiders Message:("I Surrender")
then game.Workspace.speaker.Torso.Cframe:("0,0,0")
game.Workspace.speaker.tools:remove()

What it does if you say I Surrender you go to that CFrame position.
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
17 Aug 2011 09:53 PM
I posted in your other thread. Don't repost the exact same thread if your thread isn't answered >.>
Report Abuse
bloob827 is not online. bloob827
Joined: 01 Aug 2010
Total Posts: 6867
17 Aug 2011 09:56 PM
no you need to read the wiki again..

well atleast u trid

game.Players.PlayerEntered:connect(function(plr)
plr.Chatted:connect(function(msg)
if msg == 'i surrender' then
game.Players:getPlayerFromCharacter(plr).Torso.CFrame = CFrame.new('0'0'0)
else
print[==[BYE]==]
end end)end)
Report Abuse
bloob827 is not online. bloob827
Joined: 01 Aug 2010
Total Posts: 6867
17 Aug 2011 09:57 PM
WHOOPS FAIL CFRAME DOESNT USE STRINGS
game.Players.PlayerEntered:connect(function(plr)
plr.Chatted:connect(function(msg)
if msg == 'i surrender' then
game.Players:getPlayerFromCharacter(plr).Torso.CFrame = CFrame.new(0,0,0)
else
print[==[BYE]==]
end end)end)
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
17 Aug 2011 09:58 PM
bloob, what happens if someone types

I surrender
..?
Report Abuse
MXrcr20 is not online. MXrcr20
Joined: 01 Oct 2008
Total Posts: 2644
17 Aug 2011 09:58 PM
It delete's the person's System32. D:

Use darkkiller's script.

game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(function(msg)
if p.TeamColor == BrickColor.new(game.Players.Raiders.TeamColor) then
local msg = msg:lower()
if msg == "i surrender" and workspace:findFirstChild(p.Name) then
p.Character.Torso.CFrame = CFrame.new(0,0,0)
end
end
end)
end)
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
17 Aug 2011 09:59 PM
Yuh, and then the person goes RAGEEEEEE. :]
Report Abuse
bloob827 is not online. bloob827
Joined: 01 Aug 2010
Total Posts: 6867
17 Aug 2011 10:00 PM
DOESNT MATTER WHAT WAY sry caps

it could be I surRenDer,

Because I didn't make it case sensitive.
Report Abuse
MXrcr20 is not online. MXrcr20
Joined: 01 Oct 2008
Total Posts: 2644
17 Aug 2011 10:01 PM
"if msg == 'i surrender' then"

Case sensitive...
Report Abuse
bloob827 is not online. bloob827
Joined: 01 Aug 2010
Total Posts: 6867
17 Aug 2011 10:03 PM
No, I didn't use the lower() or upper() function, so it doesnt matter.
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
17 Aug 2011 10:06 PM
if msg == 'i surrender' then <--It has to be EXACTLY 'i surrender' or else it won't work. Test it, and say I SURRENDER. I'll tell you what won't happen. The script.
Report Abuse
bloob827 is not online. bloob827
Joined: 01 Aug 2010
Total Posts: 6867
17 Aug 2011 10:11 PM
then again it has been about 8 months since I last scripted my last script
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
17 Aug 2011 10:20 PM
I don't blame you. It's been 2 months with no studio for me, and I have pretty extreme memory lapses. >.<
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