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: What's wrong with this?

Previous Thread :: Next Thread 
FireSliding is not online. FireSliding
Joined: 12 Jul 2014
Total Posts: 7938
06 Aug 2014 10:31 PM
local Coordinates = Vector3.new(-171.4, 4.09, 164.9)
local cmd = "Begin"
local admin = {["FireSliding"]=true}

game.Players.PlayerAdded:connect(function(plyr) repeat wait() until plyr.Character
if admin[plyr.Name] then
plyr.Chatted:connect(function(msg)
if msg:lower() == cmd then
plyr.Character:MoveTo(Coordinates)
end
end)
end
end)
Report Abuse
FireSliding is not online. FireSliding
Joined: 12 Jul 2014
Total Posts: 7938
06 Aug 2014 10:34 PM
b1
Report Abuse
FireSliding is not online. FireSliding
Joined: 12 Jul 2014
Total Posts: 7938
06 Aug 2014 10:35 PM
b2
Report Abuse
ehern11 is not online. ehern11
Joined: 23 Apr 2011
Total Posts: 1541
06 Aug 2014 10:36 PM
is there an error...?
Report Abuse
FireSliding is not online. FireSliding
Joined: 12 Jul 2014
Total Posts: 7938
06 Aug 2014 10:36 PM
No.
But, it doesn't do anything.
Does it need to be a local script? .-.
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
06 Aug 2014 10:48 PM
Change "Begin" to lowercase
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
06 Aug 2014 10:49 PM
Because,

print(string.lower("hi"))
> hi
print(string.lower("HI"))
> nil
Report Abuse
plistra is not online. plistra
Joined: 12 Mar 2014
Total Posts: 859
06 Aug 2014 10:52 PM
@infocus, that's not how it works.
string.lower only gets the lower-case version of a character.

Test your "solutions" before you post them.
Report Abuse
plistra is not online. plistra
Joined: 12 Mar 2014
Total Posts: 859
06 Aug 2014 10:54 PM
my post didn't make much sense, so here's an example:

print(string.lower("WHAT is THIS?")

> what is this?
Report Abuse
FireSliding is not online. FireSliding
Joined: 12 Jul 2014
Total Posts: 7938
06 Aug 2014 10:54 PM
ohhh.
I get it..
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
06 Aug 2014 10:56 PM
Plistra go ahead and print it.

Its nil for me,

if msg:lower() == "HI" then
--nope

if msg:lower() == "hi" then
--yay
Report Abuse
plistra is not online. plistra
Joined: 12 Mar 2014
Total Posts: 859
06 Aug 2014 10:57 PM
Not sure if you can read, or just stupid, but I already tested it.

print(string.lower("hi"))

prints the same as

print(string.lower("HI"))
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
06 Aug 2014 10:59 PM
Weird, it wasnt like that a year ago, ive been told by 1TopCop.

Also then explain to me why it fixed the problem.
Report Abuse
plistra is not online. plistra
Joined: 12 Mar 2014
Total Posts: 859
06 Aug 2014 11:01 PM
What are you trying to prove?

I never said I had a solution.
I never said I'd GIVE a solution.
I was just saying you gave useless (and wrong) information.
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
06 Aug 2014 11:02 PM
'Useless'
It fixed the problem. Gg no re
Report Abuse
FireSliding is not online. FireSliding
Joined: 12 Jul 2014
Total Posts: 7938
06 Aug 2014 11:08 PM
Works now.
Gg no re.
Report Abuse
plistra is not online. plistra
Joined: 12 Mar 2014
Total Posts: 859
06 Aug 2014 11:08 PM
I guess you really can't read.
Let me put this in simple words:

I NEVER SAID CHANGING 'Begin' TO LOWER CASE WOULDN'T FIX IT.
I JUST STATED THAT YOUR 'print(tostring("Blah"))' SOLUTION WAS WRONG.

PLEASE BE LESS OF AN IDIOT.
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
06 Aug 2014 11:10 PM
Well my solution working actually contradicts your predicament.
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
06 Aug 2014 11:12 PM
'tostring("Blah")'

Blah is already a string. Gg no re
Report Abuse
plistra is not online. plistra
Joined: 12 Mar 2014
Total Posts: 859
06 Aug 2014 11:13 PM
Sorry I typo'd, grand master of lua who never makes mistakes.
I obviously meant "lower.string("blah").

Idiot.
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
06 Aug 2014 11:15 PM
Tankz~
Report Abuse
FireSliding is not online. FireSliding
Joined: 12 Jul 2014
Total Posts: 7938
06 Aug 2014 11:15 PM
It only teleports meeee???..
It needs to teleport all.
ofl.
Report Abuse
plistra is not online. plistra
Joined: 12 Mar 2014
Total Posts: 859
06 Aug 2014 11:16 PM
local players = game.Players:GetChildren()

then just set that to the location or watevs.
Report Abuse
FireSliding is not online. FireSliding
Joined: 12 Jul 2014
Total Posts: 7938
06 Aug 2014 11:17 PM
Do it for me?
qq
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
06 Aug 2014 11:17 PM
O

for _, v in pairs (game.Players:children()) do
v.Character:MoveTo(Coordinates)
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