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
|
  |
| 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 |
|
|
|
| 04 Feb 2014 02:31 AM |
| You better hope the 1% chance works on every server! |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
| |
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
| |
|
|
| 06 Feb 2014 07:49 AM |
| Why are you using Lighting to store items??? |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2014 07:51 AM |
| Maybe because what's inside wot are models themselves? |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2014 07:52 AM |
| @vince Many people have been doing it for a long time. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 06 Feb 2014 07:56 AM |
| Something may come in conflict with the script very oftenly. |
|
|
| Report Abuse |
|
|
|
| 06 Feb 2014 07:57 AM |
| Never had that happen and i use it for every thing... |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|