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: Help!

Previous Thread :: Next Thread 
gametastic100 is not online. gametastic100
Joined: 15 Jun 2011
Total Posts: 1286
20 Nov 2012 06:29 AM
function check(Player, Choice)
if Choice.Name == "Orc" then
if Player.leaderstats.Gold >= 20 then
Player.leaderstats.Gold >= Player.leaderstats.Gold - 20
wait(2)

for i = 10,1 do
Player.PlayerGui.Fade.Frame.BackGroundTransparency = i --How would I fade Backwards (Make Screen Opaque)
Player.Character.Torso.CFrame = CFrame.new(514.5, 6349, -1069)
wait(1)
end

for i = 1,10 do
Player.PlayerGui.Fade.Frame.BackGroundTransparency = i
wait(1)
end

else

if Player.leaderstats.Gold > 20 then
script.Orc.ResponseDialog = "You don't have enough gold. Sorry."
end
end
end
end

script.Parent.DialogChoiceSelected:connect(check)

Report Abuse
awas3 is not online. awas3
Joined: 24 Oct 2010
Total Posts: 2854
20 Nov 2012 06:33 AM
Output?

One error is, BackGroundTransparency, Ground would not be capitalized so it would be BackgroundTransparency...

~A3~
Report Abuse
gametastic100 is not online. gametastic100
Joined: 15 Jun 2011
Total Posts: 1286
20 Nov 2012 06:34 AM
Let me get the output
Report Abuse
gametastic100 is not online. gametastic100
Joined: 15 Jun 2011
Total Posts: 1286
20 Nov 2012 06:39 AM
No output
Report Abuse
awas3 is not online. awas3
Joined: 24 Oct 2010
Total Posts: 2854
20 Nov 2012 06:43 AM
function check(Player, Choice)
if Choice.Name == "Orc" then
if Player.leaderstats.Gold >= 20 then
Player.leaderstats.Gold = Player.leaderstats.Gold.Value - 20
wait(2)

for i = 10, 1 do
wait(1)
Player.PlayerGui.Fade.Frame.BackgroundTransparency = i --How would I fade Backwards (Make Screen Opaque)
Player.Character.Torso.CFrame = CFrame.new(514.5, 6349, -1069)
end

for i = 1,10 do
wait(1)
Player.PlayerGui.Fade.Frame.BackgroundTransparency = i
end

else

if Player.leaderstats.Gold.Value < 20 then
script.Orc.ResponseDialog = "You don't have enough gold. Sorry."
end
end
end
end

script.Parent.DialogChoiceSelected:connect(check)


~A3~
Report Abuse
awas3 is not online. awas3
Joined: 24 Oct 2010
Total Posts: 2854
20 Nov 2012 06:44 AM

Try this actually:


function check(Player, Choice)
if Choice.Name == "Orc" then
if Player.leaderstats.Gold >= 20 then
Player.leaderstats.Gold = Player.leaderstats.Gold.Value - 20
wait(2)

for i = 1, 10 do
wait(1)
Player.PlayerGui.Fade.Frame.BackgroundTransparency = Player.PlayerGui.Fade.Frame.BackgroundTransparency - 0.1 --How would I fade Backwards (Make Screen Opaque)
Player.Character.Torso.CFrame = CFrame.new(514.5, 6349, -1069)
end

for i = 1,10 do
wait(1)
Player.PlayerGui.Fade.Frame.BackgroundTransparency = i
end

else

if Player.leaderstats.Gold.Value < 20 then
script.Orc.ResponseDialog = "You don't have enough gold. Sorry."
end
end
end
end

script.Parent.DialogChoiceSelected:connect(check)

~A3~
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