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: Doesnt work most of the time

Previous Thread :: Next Thread 
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
04 Feb 2014 12:03 AM
local wot = game.Lighting.items[slot1.name.Value].Model:Clone()
local angle = math.random(1,63)/10
wot.Parent = workspace.Items
wot:MoveTo(game.Players.LocalPlayer.Character.Torso.Position + Vector3.new(6*math.cos(angle),0,6*math.sin(angle)))
slot1.name.Value = ""

No output.
It's all defined.
It works 1% of the time.

Supposed to move all the stuff in the inventory to the outside world to take when you die.
Not the full script, this is just the part thats broken.
Report Abuse
redlo43 is not online. redlo43
Joined: 16 Feb 2011
Total Posts: 4722
04 Feb 2014 01:03 AM
By broken, do you mean it doesn't clone items at all or it barely clones items any distance away from torso

==I script PO-TA-TO==
Report Abuse
BlackBucketBoy is not online. BlackBucketBoy
Joined: 22 Jul 2011
Total Posts: 3230
04 Feb 2014 02:31 AM
You better hope the 1% chance works on every server!
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
04 Feb 2014 06:25 AM
It doesn't clone the items.
This function is called on death.
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
05 Feb 2014 09:16 AM
b1
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
06 Feb 2014 07:44 AM
b2
Report Abuse
4444vince2 is not online. 4444vince2
Joined: 08 Nov 2008
Total Posts: 4880
06 Feb 2014 07:49 AM
Why are you using Lighting to store items???
Report Abuse
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
06 Feb 2014 07:51 AM
Maybe because what's inside wot are models themselves?
Report Abuse
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
06 Feb 2014 07:52 AM
@vince Many people have been doing it for a long time.
Report Abuse
4444vince2 is not online. 4444vince2
Joined: 08 Nov 2008
Total Posts: 4880
06 Feb 2014 07:53 AM
That or his script is erring in other places cause he said this works sometimes but not always...
Report Abuse
4444vince2 is not online. 4444vince2
Joined: 08 Nov 2008
Total Posts: 4880
06 Feb 2014 07:55 AM
Well there is this epic new update like a few months agow that added a thing just for storing items and keeping them safe.. >_> "ServerStorage/ServerScriptService"
Report Abuse
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
06 Feb 2014 07:56 AM
Something may come in conflict with the script very oftenly.
Report Abuse
4444vince2 is not online. 4444vince2
Joined: 08 Nov 2008
Total Posts: 4880
06 Feb 2014 07:57 AM
Never had that happen and i use it for every thing...
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
06 Feb 2014 07:59 AM
I know everything is defied correctly.
This game is horribly scripted but it functions.
And it works fine one out of 100 times.
Report Abuse
4444vince2 is not online. 4444vince2
Joined: 08 Nov 2008
Total Posts: 4880
06 Feb 2014 08:10 AM
If it's not giving an error when you play the script try adding Print in it and see where it stops printing. :P
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