WarVex
|
  |
| Joined: 12 Mar 2015 |
| Total Posts: 318 |
|
|
| 13 Mar 2015 02:37 PM |
| How would i make a script where i say "Set weapon (whatever tool i choose)" With multiple different weapons to choose from? |
|
|
| Report Abuse |
|
|
Seviro
|
  |
| Joined: 08 Dec 2009 |
| Total Posts: 46758 |
|
| |
|
WarVex
|
  |
| Joined: 12 Mar 2015 |
| Total Posts: 318 |
|
|
| 13 Mar 2015 02:38 PM |
| I want to be able to say a command and everyone in the game gets the tool i want. |
|
|
| Report Abuse |
|
|
|
| 13 Mar 2015 02:39 PM |
and what does it do?
http://wiki.roblox.com/index.php?title=API:Class/Humanoid/EquipTool http://wiki.roblox.com/index.php?title=API:Class/Player/Chatted
mikasa > |
|
|
| Report Abuse |
|
|
Seviro
|
  |
| Joined: 08 Dec 2009 |
| Total Posts: 46758 |
|
|
| 13 Mar 2015 02:39 PM |
Admin commands can already do that if you put the tool in the lighting.
Do you want them to spawn with the weapon? |
|
|
| Report Abuse |
|
|
WarVex
|
  |
| Joined: 12 Mar 2015 |
| Total Posts: 318 |
|
| |
|
|
| 13 Mar 2015 02:40 PM |
| your question is stupid and not specific enough |
|
|
| Report Abuse |
|
|
Seviro
|
  |
| Joined: 08 Dec 2009 |
| Total Posts: 46758 |
|
|
| 13 Mar 2015 02:41 PM |
You'll need this: http://wiki.roblox.com/index.php?title=CharacterAdded
along with what blood posted |
|
|
| Report Abuse |
|
|
ywis
|
  |
| Joined: 08 Aug 2014 |
| Total Posts: 12931 |
|
| |
|
WarVex
|
  |
| Joined: 12 Mar 2015 |
| Total Posts: 318 |
|
|
| 13 Mar 2015 02:44 PM |
| wtf guys. You tell me to add an admin script and then i gotta add those things? |
|
|
| Report Abuse |
|
|
Seviro
|
  |
| Joined: 08 Dec 2009 |
| Total Posts: 46758 |
|
|
| 13 Mar 2015 02:44 PM |
You don't need to add anything.
You don't even need to script this. Admin can do it for you. Just put the tools in the lighting and the command is "startergive" |
|
|
| Report Abuse |
|
|
ywis
|
  |
| Joined: 08 Aug 2014 |
| Total Posts: 12931 |
|
|
| 13 Mar 2015 02:45 PM |
| You mean setting a starter weapon with various others? |
|
|
| Report Abuse |
|
|
WarVex
|
  |
| Joined: 12 Mar 2015 |
| Total Posts: 318 |
|
| |
|
|
| 13 Mar 2015 02:46 PM |
--put a model named Tools in ReplicatedStorage with the tools in it local rs = game:GetService('ReplicatedStorage') local tools = rs.Tools:GetChildren() local plr = game.Players.LocalPlayer player.Chatted:connect(function(msg) if string.sub(string.lower(msg),0,10) == "set weapon" then toolToFind = rs:FindFirstChild(string.sub(string.lower(msg),11)) playerList = game.Players:GetPlayers() for i=1,#playerList do local c = playerList[i].Character or playerList[i].CharacterAdded:wait() local t = toolToFind:clone(game.Workspace) c:WaitForChild('Humanoid'):EquipTool(t) end end end)
something like this maybe. unclean, I know, but it should work.
mikasa > |
|
|
| Report Abuse |
|
|
|
| 13 Mar 2015 02:47 PM |
also might wanna check who is running said function. make sure it's not a random player.
mikasa > |
|
|
| Report Abuse |
|
|
WarVex
|
  |
| Joined: 12 Mar 2015 |
| Total Posts: 318 |
|
|
| 13 Mar 2015 02:48 PM |
| Do i put that in a script? |
|
|
| Report Abuse |
|
|
ywis
|
  |
| Joined: 08 Aug 2014 |
| Total Posts: 12931 |
|
|
| 13 Mar 2015 02:49 PM |
JUST PUT WEAPON IN LIGHTNING THEN SAY STARTERGIVE (WEPS NAME)
Add a script that removes all of the staterpack |
|
|
| Report Abuse |
|
|
|
| 13 Mar 2015 02:52 PM |
@War, No, you put it in notepad and do nothing with it ever again.
No, you put it in a localscript in startergui or starterpack e.e
mikasa > |
|
|
| Report Abuse |
|
|
WarVex
|
  |
| Joined: 12 Mar 2015 |
| Total Posts: 318 |
|
|
| 13 Mar 2015 02:54 PM |
| i did it and tryed it. What do i say to get the gun? |
|
|
| Report Abuse |
|
|
|
| 13 Mar 2015 02:54 PM |
did you even read the script
mikasa > |
|
|
| Report Abuse |
|
|
WarVex
|
  |
| Joined: 12 Mar 2015 |
| Total Posts: 318 |
|
|
| 13 Mar 2015 02:56 PM |
i said set weapon GPR
:set weapon GPR
|
|
|
| Report Abuse |
|
|
|
| 13 Mar 2015 02:57 PM |
why did you add a :
mikasa > |
|
|
| Report Abuse |
|
|
WarVex
|
  |
| Joined: 12 Mar 2015 |
| Total Posts: 318 |
|
|
| 13 Mar 2015 02:58 PM |
The admin?
If i want the gun GPR what would i say? |
|
|
| Report Abuse |
|
|
| |
|
WarVex
|
  |
| Joined: 12 Mar 2015 |
| Total Posts: 318 |
|
|
| 13 Mar 2015 03:00 PM |
| come to my game for a minute please. |
|
|
| Report Abuse |
|
|