Its for a game I'm working on. In the future I'll give you more sneak peeks on stuff like maps, weapons, etc.
Its for a game I'm working on. In the future I'll give you more sneak peeks on stuff like maps, weapons, etc.
We can also have a system in which if a question has enough upvotes it'll be accepted, since Yahoo Questions has this. However, this can be abused by alternate accounts.
make sure to contact nasa with this excellent knowledge, you could be making BILLIONS or even TRILLIONS with this!
Admin Commands are pretty simple to set up.
Today we're going to be learning how to use module scripts, and how to manipulate strings.
We're going to be opening a ModuleScript inside ReplicatedStorage. I'll name the ModuleScript "AdminCommands".
As you can see in our ModuleScript code, we have a function in here. With this function, we can access the "CheckAdmin" function in any script if they're using "require".
In the function what we're doing is looping through the admins table to see if the player's UserId is inside the table. If that is true, we'll return true. If not, we return false. In our "Admins" table we store UserIds of the Admins we want.
Now we'll be moving on to LocalScripts. We'll create a LocalScript inside StarterPlayerScripts.
Inside the code we have an event, and a couple of variables. We have the "AdminCommands" ModuleScript, the player, and the "isAdmin" command.
We're using the AdminCommands ModuleScript to use our admin commands since that's where we'll be using our commands. The checkAdmin command is used to check if the player is an admin or not.
We use the Player for an event, which is the Chatted event. This is fired whenever the player chats. We use Message for reference for the actual message.
We check "isAdmin", and if that is false we end the code immediately from there. If not, it continues.
We'll cut up the message into the first eight characters. If they are equal to ":Explode" then we find the targetedPlayer.
The targetedPlayerName is basically the name of said player. We'll cut up the message again, however we'll cut it up into the tenth character all the way up to the Message's length. Now we use the targetedPlayer variable to get the targetedPlayer by finding the player using the target's name. If that player does exist, we use an Explode command in the AdminCommands module script. However, we haven't done that yet. That's what we'll be doing next.
Inside the ModuleScript's code we'll be doing the following:
In the code we have the admin command. What we're doing over here is creating an Explosion and putting the explosion's position into the target's HumanoidRootPart position. Afterwards we'll put the parent of the explosion into the workspace so it can be seen and affect the target.
Now let's test it out!
This is the end result for me (Sorry for bad quality, it got compressed somehow.)
So what did we learn today?
String manipulation (string.len and string.sub)
Events (Player.Chatted)
Module Scripts(require, etc.)
Tables (Admins,Indexing,etc.)
Feedback would be greatly appreciated. Good luck!
ODers in reality are just kids wanting a virtual girlfriend/boyfriend. Practically they're not harming anyone and even if the other side is a pedophile there's a very tiny chance of this, and an even TINIER chance of them meeting up due to roblox's filter. Just tell them how it's against the rules and that they shouldn't do it or else they might be banned. If you really want to harass them, you're proving that you are more toxic than the ODers themselves.
Its about bowl cut man having psychic abilities and his abilities are tied to his emotions. So if he's angry he becomes super powerful. Bowl cut man later learns in his life that his abilities are dangerous, so he bottles up his emotions so he doesn't have to deal with it. However, sometimes his emotions expand little by little and yeah. It's by the same creator of One Punch Man.
@DominusInfinitus Gucci gang is a mumble rap song. Listen to lyrical rappers and you'll be fine
It's about mumble rappers, but I see where you're going with it. You probably have a bad view about it from mumble rappers, who talk about a lot of the things you dislike about it. But I respect your opinion.
My favorite is Eminem's Lucky you.
Here's a quote, it's supposed to be super fast in the song, but here's the lyrics (The curse words are censored lol).
But I think it's inevitable
They know what button to press or what lever to pull
To get me the snap though
And if I pay it attention I'm probably makin' it bigger
But you've been takin' the ****s
In the ******' back, **
On the brink, any minute
Got me thinkin' of finishin' everything
With acetaminophen and reapin' the benefits
I'm asleep at the wheel again
As I peak into thinkin' about an evil intent
Of another beat, I'ma kill again
'Cause even if I gotta end up eatin' a pill again
Even ketamine or methamphetamine
With the minithin, it better be at least 70 to 300 milligram
And I might as well 'cause I'ma end up bein' a villain again
Levels to this ****I got an elevator
You could never say to me I'm not a ******' record breaker
I sound like a broken record every time I break a record
Nobody could ever take away the legacy I made, I never cater
*********** now I got a right to be this way
I got spite inside my DNA
But I wrote 'til the wheels fall off, I'm workin' tirelessly, ayy
If you listen to music while you build and/or script, then please post it below.
I'll start first: