|
| 11 Jul 2012 11:21 AM |
I got an error which seemed like a bad thing to get an error message, but apparently it was enough to disconnect an event.
"Workspace.RollingScript:59: attempt to call field 'Value' (a number value)"
Here was the function that included line 59:
roll.Head.ClickDetector.MouseClick:connect(function(player) if not player then return end if player.leaderstats.Bet.Value <= 1 then roll.Name = 'Oops! Please make a valid bet (more than 1), then click me!' return end x = math.random(6) y = math.random(6) dice.Die1.Decal.Texture = 'http://www.roblox.com/asset/?id='..decals[x] dice.Die2.Decal.Texture = 'http://www.roblox.com/asset/?id='..decals[y] if (x + y) > player.leaderstats.Bet.Value then roll.Name = 'You won '.. (x + y) * player.leaderstats.Bet.Value ..' credits! Click to roll again.' player.leaderstats.Credits.Value = player.leaderstats.Credits.Value (((x + y) * player.leaderstats.Bet.Value) - player.leaderstats.Bet.Value) else roll.Name = 'Oh no! You lost! Click to roll again.' player.leaderstats.Credits.Value = player.leaderstats.Credits.Value - player.leaderstats.Bet.Value end end)
Help?
~This sig is false~ |
|
|
| Report Abuse |
|
|
|
| 11 Jul 2012 11:47 AM |
Which line is line 59?
> † KMXD † |
|
|
| Report Abuse |
|
|
|
| 11 Jul 2012 06:56 PM |
i think
player.leaderstats.Credits.Value = player.leaderstats.Credits.Value (((x + y) * player.leaderstats.Bet.Value) - player.leaderstats.Bet.Value)
~This sig is false~ |
|
|
| Report Abuse |
|
|
|
| 11 Jul 2012 06:57 PM |
You think?
I have a feeling the code isn't yours. |
|
|
| Report Abuse |
|
|
|
| 11 Jul 2012 07:15 PM |
| How do you get a script that teleports you once to ur map like when the map appears it teleports you directly to it once. |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
| |
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 11 Jul 2012 07:19 PM |
IT should be: player.leaderstats.Credits.Value = player.leaderstats.Credits.Value + (((x + y) * player.leaderstats.Bet.Value) - player.leaderstats.Bet.Value) |
|
|
| Report Abuse |
|
|
|
| 11 Jul 2012 07:43 PM |
| You mean to createw my own script and put that there so when I teleport it will go smoothly. |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 11 Jul 2012 07:47 PM |
..... Okay, make your own thread... |
|
|
| Report Abuse |
|
|
| |
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
| |
|
|
| 11 Jul 2012 08:02 PM |
....... I just only needed A teleporter script that works smoothly for my atomic bomberman game |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
| |
|
| |
|
|
| 12 Jul 2012 06:49 PM |
| I have another question how do you make a kill script that has time with it |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
| |
|
|
| 12 Jul 2012 07:48 PM |
| What am I suppose to put in the script to make it work |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
| |
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
|
| 12 Jul 2012 07:50 PM |
while true do end Put that at the top of your script. |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 12 Jul 2012 07:52 PM |
^no no no. To make it work put this in it(Sorry for anger earlier, my bro was typing it without my knowledge) Put this in it on the top line: while true do Instance.new("ManualJointSurfaceInstance", workspace) end |
|
|
| Report Abuse |
|
|