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: Having trouble with this.

Previous Thread :: Next Thread 
Avner is not online. Avner
Joined: 30 Nov 2007
Total Posts: 3390
19 Jan 2014 09:21 PM
Blade = game.Lighting.Blade
Blade = Blade:clone()

script.Parent.DialogChoiceSelected:connect(function(player, choice)
if (choice == script.Parent.Choice1) then
if (player.leaderstats.Drachma.Value >= 1) then
model = Blade:clone()
model.Parent = player.Backpack
model:makeJoints()
player.leaderstats.Drachma.Value = player.leaderstats.Drachma.Value - 1
end
return
end
end)

I have the correct amount of money but I dont get the tool
Report Abuse
Avner is not online. Avner
Joined: 30 Nov 2007
Total Posts: 3390
19 Jan 2014 09:25 PM
time = 30

while true do
wait(1)
time = time - 1
if (time == 0) then
time = 180
players = game.Players:GetChildren()
for i=1, #players do
if (players[i]:findFirstChild("leaderstats")) then
if (players[i]:IsInGroup(1024005)==true) then
players[i].leaderstats.Money.Value = players[i].leaderstats.Money.Value + 2
else
players[i].leaderstats.Money.Value = players[i].leaderstats.Money.Value + 1 --70
end
end
end
end
end



The currency is Drachma do I change everything that has money to Drachma?
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
19 Jan 2014 09:31 PM
Yes, change every Money to Drachma.
Report Abuse
Avner is not online. Avner
Joined: 30 Nov 2007
Total Posts: 3390
19 Jan 2014 09:32 PM
What about my first question?
Report Abuse
Avner is not online. Avner
Joined: 30 Nov 2007
Total Posts: 3390
19 Jan 2014 09:43 PM
Bump
Report Abuse
Azureous is not online. Azureous
Joined: 29 Jan 2012
Total Posts: 25287
19 Jan 2014 09:43 PM
time = 30

while true do
wait(1)
time = time - 1
if (time == 0) then
time = 180
players = game.Players:GetPlayers()
for i=1, #players do
coroutine.resume(coroutine.create(function()
if (players[i]:findFirstChild("leaderstats")) and players[i]:IsInGroup(1024004) then
players[i].leaderstats.Money.Value = players[i].leaderstats.Money.Value + 2
else
players[i].leaderstats.Money.Value = players[i].leaderstats.Money.Value + 1 --70
end
end))
end
end
end
Report Abuse
Avner is not online. Avner
Joined: 30 Nov 2007
Total Posts: 3390
19 Jan 2014 09:45 PM
Figure it out

"if (choice == script.Parent.Choice1) then"

.Choice1

Thats not the name of the dialog.. qq
Report Abuse
Avner is not online. Avner
Joined: 30 Nov 2007
Total Posts: 3390
19 Jan 2014 09:54 PM
Need urgent help
------------------------------------------------------------
Blade = game.Lighting.Blade
Blade = Blade:clone()

script.Parent.DialogChoiceSelected:connect(function(player, choice)
if (choice == script.Parent.DialogChoice1) then
if (player.leaderstats.Drachma.Value >= 1) then
model = Blade:clone()
model.Parent = player.Backpack
model:makeJoints()
player.leaderstats.Drachma.Value = player.leaderstats.Drachma.Value - 1
end
return
end
end)

I have the correct amount of money but I dont get the tool
Report Abuse
Avner is not online. Avner
Joined: 30 Nov 2007
Total Posts: 3390
19 Jan 2014 09:56 PM
Turns out I didnt figure it out also.
Report Abuse
Avner is not online. Avner
Joined: 30 Nov 2007
Total Posts: 3390
19 Jan 2014 09:59 PM
Nvm
Report Abuse
Avner is not online. Avner
Joined: 30 Nov 2007
Total Posts: 3390
19 Jan 2014 10:07 PM
New problem. Wont take the Drachmas away when I buy the tool.
Report Abuse
Avner is not online. Avner
Joined: 30 Nov 2007
Total Posts: 3390
19 Jan 2014 10:10 PM
Come to my place. I really need help.
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
19 Jan 2014 10:10 PM
Try removing the :makejoints() line.
Report Abuse
Avner is not online. Avner
Joined: 30 Nov 2007
Total Posts: 3390
19 Jan 2014 10:12 PM
Also, When I want to buy another it wont let me.
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