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 » Scripters
Home Search
 

Re: Sorry about the SH question, but...

Previous Thread :: Next Thread 
sharkSquid is not online. sharkSquid
Joined: 30 Sep 2011
Total Posts: 32
01 Oct 2011 06:43 PM
SH currently has no good scripters online, and they aren't able to solve this. I understand if you guys dismiss this as spam, I know it's the wrong forum. It's just that SH is not quite feeling up to it right now.

local users = {"sharkSquid"}
local banned = {}

game.Players.PlayerAdded:connect(function(player)
for i, v in pairs(users) do
if string.lower(player.Name) == string.lower(v) then
player.Chatted:connect(function(message)
if string.sub(string.lower(message), 4) == "sit/" then
local foundPlayer = string.sub(message, 5)
local findPlayer = game.Players:findFirstChild(foundPlayer)
if findPlayer then
local char = findPlayer.Character
if char then
local hum = char:findFirstChild("Humanoid")
if hum then
hum.Sit = true
end
end
else
local h = Instance.new("Hint", player.PlayerGui)
h.Text = "The player you are looking for was not found."
game:GetService("Debris"):AddItem(h, 5)
end
end
end)
end
end
end)

No output. I tested it by saying "sit/sharksquid" in online mode, and I got no results. Again, I apologize if you classify this as spam.
Report Abuse
SCARFACIAL is not online. SCARFACIAL
Joined: 28 Jan 2010
Total Posts: 7970
01 Oct 2011 06:44 PM
Get out.

And Lrn2Lua

Regards,
~Scarfacial
Report Abuse
sharkSquid is not online. sharkSquid
Joined: 30 Sep 2011
Total Posts: 32
01 Oct 2011 06:46 PM
@SCAR

My to do list:

Lrn2Lua - Check

Already done that.
Report Abuse
SCARFACIAL is not online. SCARFACIAL
Joined: 28 Jan 2010
Total Posts: 7970
01 Oct 2011 06:47 PM
if string.sub(string.lower(message), 4) == "sit/" then

Orlynao?

Regards,
~Scarfacial
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
01 Oct 2011 06:48 PM
"string.sub(string.lower(message), 4)"

message:lower():sub(1,4)

if you just do 4 it'll look at everything from 4 and up.
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
01 Oct 2011 06:49 PM
Also if you need to test for output with chat just go to

Tools>Test>Start server

then from the window that pops up go to

Tools>Test>Start player

then in the server window run

game.Players.Player:SetSuperSafeChat(false)

And start chatting but look for output in server window.
Report Abuse
sharkSquid is not online. sharkSquid
Joined: 30 Sep 2011
Total Posts: 32
01 Oct 2011 06:52 PM
@SDuke524

Thank you for that. I'm truly sorry I had to spam Scripters, it's just that SH is dead at the moment. It will never happen again unless I have another particularly challenging issue.
Report Abuse
nickmaster24 is not online. nickmaster24
Joined: 04 Oct 2008
Total Posts: 8906
01 Oct 2011 06:53 PM
Lrn2postintherightforum

~¡Todos los días estoy barajando!~
Report Abuse
sharkSquid is not online. sharkSquid
Joined: 30 Sep 2011
Total Posts: 32
01 Oct 2011 07:06 PM
@SDuke

I get no output because I use the .PlayerAdded event.

And now I have a minor problem.

When I say "sit/sharkSquid", it will force-sit me. However, when I say "sit/sharksquid", it gives me the error hint (which means that my script is functioning correctly). Any input you can give me? (I probably just need to add in a string.lower() function, but I know SH won't respond.)

And for the fourth time, sorry about this.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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