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 » Scripting Helpers
Home Search
 

Re: Simple Script Fix Please

Previous Thread :: Next Thread 
opplo is not online. 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 is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
27 Oct 2011 07:55 AM
You hae your connections. Mixed up.
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
27 Oct 2011 07:55 AM
Have.
Report Abuse
opplo is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
27 Oct 2011 07:58 AM
Could you fix that?
Report Abuse
MrChubbs is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
27 Oct 2011 10:05 AM
Bump
Report Abuse
UttermostExedra is not online. UttermostExedra
Joined: 28 Dec 2009
Total Posts: 2483
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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