|
| 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 |
|
|
|
| 01 Oct 2011 06:44 PM |
Get out.
And Lrn2Lua
Regards, ~Scarfacial |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2011 06:46 PM |
@SCAR
My to do list:
Lrn2Lua - Check
Already done that. |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2011 06:47 PM |
if string.sub(string.lower(message), 4) == "sit/" then
Orlynao?
Regards, ~Scarfacial |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 01 Oct 2011 06:53 PM |
Lrn2postintherightforum
~¡Todos los días estoy barajando!~ |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|