|
| 27 Oct 2017 11:22 PM |
So I can script, However I'm not familiar with the "On-Chat" function. I've posted threads here but no one seems to respond. So I would like to hire a fellow Scripter to do it for me. I would've loved to learn how to do it but seems like no one wants to teach me... Sokari#3742
|
|
|
| Report Abuse |
|
|
PixEclipz
|
  |
| Joined: 24 Jan 2012 |
| Total Posts: 103 |
|
|
| 28 Oct 2017 01:17 AM |
Not sure what you're trying to do, but this might help: http://wiki.roblox.com/index.php?title=API:Class/Chat
--𝓟𝓲𝔁𝓔𝓬𝓵𝓲𝓹𝔃 - Founder, Eclipse Interactive |
|
|
| Report Abuse |
|
|
PixEclipz
|
  |
| Joined: 24 Jan 2012 |
| Total Posts: 103 |
|
|
| 28 Oct 2017 01:18 AM |
Not sure what you're trying to do, but this might help: http://wiki.roblox.com/index.php?title=API:Class/Chat
--𝓟𝓲𝔁𝓔𝓬𝓵𝓲𝓹𝔃 - Founder, Eclipse Interactive |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2017 08:31 AM |
What I'm trying to do is similiar to admin commands... I need to execute my script upon saying !give player
|
|
|
| Report Abuse |
|
|
PixEclipz
|
  |
| Joined: 24 Jan 2012 |
| Total Posts: 103 |
|
|
| 28 Oct 2017 11:10 AM |
Use the Chatted event. the arguments are Chatted ( PVInstance part, string message, ChatColor color )
--𝓟𝓲𝔁𝓔𝓬𝓵𝓲𝓹𝔃 - Founder, Eclipse Interactive |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2017 04:51 PM |
Not sure how to make it go like this
!give "Player-Name" "Item-Name"
|
|
|
| Report Abuse |
|
|
PixEclipz
|
  |
| Joined: 24 Jan 2012 |
| Total Posts: 103 |
|
|
| 28 Oct 2017 09:17 PM |
That would be slightly more advanced coding, you need to split strings
--𝓟𝓲𝔁𝓔𝓬𝓵𝓲𝓹𝔃 - Founder, Eclipse Interactive |
|
|
| Report Abuse |
|
|
Chrounum
|
  |
| Joined: 04 Apr 2015 |
| Total Posts: 2911 |
|
|
| 28 Oct 2017 09:27 PM |
never exactly learned how to use sub & split strings..
maybe i should do that..
when the meme so supreme you let out a scream... ^o^ |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2017 09:51 PM |
local isAdmin = {["Blizzire_Bot"] = true} function onChatted(message, player) if message == ":rs" and isAdmin[player.Name] then for i,v in pairs(game.Players:GetChildren()) do game.Players.Name.leaderstats.KOs.Value = 0 game.Players.Name.leaderstats.Wipeouts.Value = 0 end end end game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(message) onChatted(message, player) end) end)
-=-=-=-=-=-=-=-=-=- Friend gave me this, Says he doesn't know how to separate it either.
|
|
|
| Report Abuse |
|
|
PixEclipz
|
  |
| Joined: 24 Jan 2012 |
| Total Posts: 103 |
|
|
| 28 Oct 2017 10:29 PM |
In terms of splitting strings in lua one option is:
string.gmatch(String, Splitter)
(Never tried it in roblox though)
--𝓟𝓲𝔁𝓔𝓬𝓵𝓲𝓹𝔃 - Founder, Eclipse Interactive |
|
|
| Report Abuse |
|
|
Laedere
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 23601 |
|
| |
|
|
| 29 Oct 2017 01:01 PM |
I was working on a cool game / project and the person I was working with had something like this -=-=-=-=-=-=-=-=- onChatted something
game.Players.LocalPlayer.Leaderstat.Points = ..Score.. -=-=-=-=-=-=-=-=- this was like a few months ago and I never really focused on it... The project was a complete fail since school trampled our time.
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
D3D9
|
  |
| Joined: 20 Aug 2016 |
| Total Posts: 87 |
|
|
| 30 Oct 2017 03:52 PM |
local string = "!give playername item";
local string1, string2, string3 = string:match("(!give%s)(%w+%s)(%w+)");
if string1 and string2 and string3 then --code end;
|
|
|
| Report Abuse |
|
|
|
| 30 Oct 2017 05:04 PM |
Could you explain this in more details?
|
|
|
| Report Abuse |
|
|
|
| 30 Oct 2017 05:48 PM |
I would love to help, how much is the pay? Dm me.
Long live OT. You will be missed! |
|
|
| Report Abuse |
|
|
|
| 30 Oct 2017 05:56 PM |
| I'm bored. I'll do it for free. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 01 Nov 2017 05:06 PM |
| Kid, I've been scripting for 5 years now. |
|
|
| Report Abuse |
|
|
|
| 01 Nov 2017 05:25 PM |
I can't even PM you bro. I also left my discord up there for a reason.
|
|
|
| Report Abuse |
|
|
|
| 01 Nov 2017 05:41 PM |
We're the same person on different accounts, That was my Pokemon Brick Bronze account lol.
|
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Nov 2017 03:38 PM |
| This post has been up too long. |
|
|
| Report Abuse |
|
|