|
| 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 |
|
|
| |
|
|
| 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 |
|
|
| |
|
|
| 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
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
| |
|
|
| 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
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 09 Oct 2014 03:26 PM |
| Just wait for your mother. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|