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: What's wrong?

Previous Thread :: Next Thread 
Mathfreak231 is not online. Mathfreak231
Joined: 21 Jun 2010
Total Posts: 5311
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
11 Jul 2012 11:47 AM
Which line is line 59?

> † KMXD †
Report Abuse
Mathfreak231 is not online. Mathfreak231
Joined: 21 Jun 2010
Total Posts: 5311
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
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
11 Jul 2012 06:57 PM
You think?

I have a feeling the code isn't yours.
Report Abuse
CredibleBlockMan is not online. CredibleBlockMan
Joined: 25 Feb 2012
Total Posts: 12
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 is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
11 Jul 2012 07:18 PM
@Credible lol
Report Abuse
mamaguy is not online. 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
CredibleBlockMan is not online. CredibleBlockMan
Joined: 25 Feb 2012
Total Posts: 12
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 is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
11 Jul 2012 07:47 PM
.....
Okay, make your own thread...
Report Abuse
CredibleBlockMan is not online. CredibleBlockMan
Joined: 25 Feb 2012
Total Posts: 12
11 Jul 2012 07:52 PM
what do you mean thread
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
11 Jul 2012 07:56 PM
....
*Facepalm*
Report Abuse
CredibleBlockMan is not online. CredibleBlockMan
Joined: 25 Feb 2012
Total Posts: 12
11 Jul 2012 08:02 PM
.......
I just only needed A teleporter script that works smoothly for my atomic bomberman game
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
11 Jul 2012 08:24 PM
POST SOMEWHERE ELSE
Report Abuse
CredibleBlockMan is not online. CredibleBlockMan
Joined: 25 Feb 2012
Total Posts: 12
11 Jul 2012 08:31 PM
ok then
Report Abuse
CredibleBlockMan is not online. CredibleBlockMan
Joined: 25 Feb 2012
Total Posts: 12
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 is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
12 Jul 2012 06:56 PM
...MAKE YOUR OWN THREAD
Report Abuse
CredibleBlockMan is not online. CredibleBlockMan
Joined: 25 Feb 2012
Total Posts: 12
12 Jul 2012 07:48 PM
What am I suppose to put in the script to make it work
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
12 Jul 2012 07:49 PM
...Go away.
Report Abuse
WhiteRain is not online. 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 is not online. 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
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