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: How do I make a script do the command when you type

Previous Thread :: Next Thread 
Xegic is online. Xegic
Joined: 29 Jan 2016
Total Posts: 2105
19 Mar 2017 12:59 PM
I want a script that makes this script happen

for i,v in pairs(game.Players:GetPlayers()) do
game.Players[v.Name]:LoadCharacter()
end

Once you type :end

I also want it to do this

for i,v in pairs(game.Players:GetPlayers()) do
if v:FindFirstChild("KOs") and v:FindFirstChild("Wipeouts") then
v.KOs.Value =0
v.Wipeouts.Value=0
end
end

So it respawns the player and resets their KOs and WOs.

Appreciated! :D


Report Abuse
Xegic is online. Xegic
Joined: 29 Jan 2016
Total Posts: 2105
19 Mar 2017 01:00 PM
Title could've been typed up better. My bad.


Report Abuse
vexieh is not online. vexieh
Joined: 22 Oct 2009
Total Posts: 3468
19 Mar 2017 01:06 PM
basically you just use the chatted event, you can make it slightly more advanced with some string manipulation

game.Players.PlayerAdded:Connect(function(Player)
Player.Chatted:Connect(function(Message)
if(Message == ":end")then
print("do stuff")
end
end)
end)


Report Abuse
Xegic is online. Xegic
Joined: 29 Jan 2016
Total Posts: 2105
19 Mar 2017 01:25 PM
How would I embed the stuff that I wanted in?


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