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: Confusing Gui Issue.

Previous Thread :: Next Thread 
AlwaysKelly is not online. AlwaysKelly
Joined: 17 Mar 2014
Total Posts: 20
09 Oct 2014 03:11 PM
Hello,

I am having a weird problem with roblox studio and the actual version once uploaded.

Everything works in the studio when i test it but once uploaded when i enter the game and the script that opens the gui to buy something wont close? But it closes fine in the stuido test's.

I am kinda new to the scripting stuff but for the most part my mom helped me with the scripting but she has been really busy this week and she said ask here because i talked to her threw skype because shes on business trip to another state.. She goes on them every few weeks.

Sooooo i need to figure this out its the only thing stopping from playing on it with friends. Its kinda hard to play a game if you cant buy upgraded weapons.

Report Abuse
builderman0621 is not online. builderman0621
Joined: 13 Jul 2010
Total Posts: 1612
09 Oct 2014 03:13 PM
We need some code.
Report Abuse
AlwaysKelly is not online. AlwaysKelly
Joined: 17 Mar 2014
Total Posts: 20
09 Oct 2014 03:18 PM
local debounce = false



function getPlayer(humanoid)

local players = game.Players:children()

for i = 1, #players do

if players[i].Character.Humanoid == humanoid then return players[i] end

end

return nil

end



function onTouch(part)



local human = part.Parent:findFirstChild("Humanoid")

if (human ~= nil) and debounce == false then



debounce = true



local player = getPlayer(human)



if (player == nil) then return end



user = game.Players:findFirstChild(human.Parent.Name)

if user.PlayerGui:findFirstChild("ShopGUI") ~= nil then return end

script.Parent.ShopGUI:clone().Parent = player.PlayerGui

wait(2)

else

wait(2)

debounce = false

end

end





script.Parent.Touched:connect(onTouch)


This is the code listed under the gui
Report Abuse
builderman0621 is not online. builderman0621
Joined: 13 Jul 2010
Total Posts: 1612
09 Oct 2014 03:18 PM
Obvious troll is obvious.
Report Abuse
AlwaysKelly is not online. AlwaysKelly
Joined: 17 Mar 2014
Total Posts: 20
09 Oct 2014 03:19 PM
ugh whats wrong with you not everyone trolls. i cant figure it out. Am i looking at the wrong script?
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
09 Oct 2014 03:21 PM
Did you make this script
Report Abuse
AlwaysKelly is not online. AlwaysKelly
Joined: 17 Mar 2014
Total Posts: 20
09 Oct 2014 03:25 PM
No its not. I am looking threw the code but usually my mom does fixes and stuff to make some of them work. But shes gunna be gone for 4-5 days. but i wanna fix it now!
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
09 Oct 2014 03:26 PM
Just wait for your mother.
Report Abuse
AlwaysKelly is not online. AlwaysKelly
Joined: 17 Mar 2014
Total Posts: 20
09 Oct 2014 03:42 PM
yea i called her she said i could sent it too her after a meeting with my moms girlfriend help. if not i have to wait because she doesnt have the studio installed. ';s
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