opplo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 5320 |
|
|
| 27 Oct 2011 07:50 AM |
This script should give the player in group 39977 one of each weapon in lighting GroupWeps in the lighting but instead of giving one of each it seems to be doubling to weapon in your backpack. I can't see why it is doing that could someone help me out please? The script also remove LinkS and M6A1 from there backpack.
game.Players.PlayerAdded:connect(onPlayerRespawned) function onPlayerRespawned(newPlayer) wait(0.5) if newPlayer:IsInGroup(39977) then w = game.Lighting.GroupWeps:GetChildren() for i = 1,#w do w[i]:Clone().Parent = newPlayer.Backpack newPlayer.Backpack.LinkS:Remove() newPlayer.Backpack.M6A1:Remove() end end end
function onPlayerEntered(newPlayer) newPlayer.Changed:connect(function (property) if (property == "Character") then onPlayerRespawned(newPlayer) end end) end
game.Players.PlayerAdded:connect(onPlayerEntered) |
|
|
| Report Abuse |
|
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
|
| 27 Oct 2011 07:55 AM |
| You hae your connections. Mixed up. |
|
|
| Report Abuse |
|
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
| |
|
opplo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 5320 |
|
| |
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
|
| 27 Oct 2011 07:59 AM |
| I would but from what I am on now I cannot copy and paste, and I don't feel like writing a new script, next time don't try to modify free models f you don't know how to script. |
|
|
| Report Abuse |
|
|
opplo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 5320 |
|
|
| 27 Oct 2011 08:00 AM |
| If you cannot script then get out the scripting forum you are not helping me. Also i do know how to script and yes its edited from a free model its how i learn to script. |
|
|
| Report Abuse |
|
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
|
| 27 Oct 2011 08:04 AM |
| I do know how to script, but I don't want to re write your script from my iPad, look at your connections, there all wrong, the top one is connecting but it needs to connect from the playerEntered function, and you have multiple connections going into that one function, clean those up. |
|
|
| Report Abuse |
|
|
opplo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 5320 |
|
|
| 27 Oct 2011 09:24 AM |
| I don't understand what you mean. Could anyone else help? |
|
|
| Report Abuse |
|
|
opplo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 5320 |
|
| |
|
|
| 27 Oct 2011 11:03 AM |
| Please don't flame someone who is just trying to help. If you really want to make a script, don't edit freemodels. Go to wiki.roblox.com, and search all the weird things that come up in that freemodel. |
|
|
| Report Abuse |
|
|
opplo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 5320 |
|
|
| 27 Oct 2011 11:46 AM |
Wiki doesnt have a fix scripting function, im not flaming. I just simply need help on how to fix the connectives or how to fix the script.
|
|
|
| Report Abuse |
|
|