|
| 04 Aug 2012 07:58 PM |
I'm loving the Kitteh's RPG kit and I find it really awesome but,
The Shops won't work.
Yes I but shop1 and sellgui in Lightning Yes I didn't ungroup the buttons. Yes the shop model is in workspace Yes I tryed anchoring it or locking it or cancollide it Yes I tryed contacting Kitteh6660.
No I didn't touch any of the scripts No I don't know much about scripting. No I am not a noob (Played roblox for 2 years)
Sorry If this is in the wrong section I don't use the forums much.
Any Help? |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 07:59 PM |
| I know My forum status is trolling but I'm not trolling. |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 08:00 PM |
| Give us the broken script? |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 08:04 PM |
This is the Buy Swords Shop Script
button = script.Parent
function onTouch(part) local player = game.Players:GetPlayerFromCharacter(part.Parent) if player ~= nil then local GUI = game.Lighting:FindFirstChild(script.Parent.ShopGUI.Value) local AlreadyHaveGUI = player.PlayerGui:FindFirstChild(script.Parent.ShopGUI.Value) if AlreadyHaveGUI == nil then GUI:Clone().Parent = player.PlayerGui else print("Already have GUI!") end end end
button.Touched:connect(onTouch)
And this is the Sell Swords Shop Script
button = script.Parent
function onTouch(part) local player = game.Players:GetPlayerFromCharacter(part.Parent) if player ~= nil then local GUI = game.Lighting:FindFirstChild(script.Parent.ShopGUI.Value) local AlreadyHaveGUI = player.PlayerGui:FindFirstChild(script.Parent.ShopGUI.Value) if AlreadyHaveGUI == nil then GUI:Clone().Parent = player.PlayerGui else print("Already have GUI!") end end end
button.Touched:connect(onTouch)
I can give more info if you like. |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 08:08 PM |
| Is that in the Player GUI? |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 08:10 PM |
Sell String Value
ClassName: StringValue Name: ShopGUI Parent: Pawn Shop Button
(The part name is exact parent)
Value: SellGui
(The Gui name is exact value)
Archivable: (checked)
Buy String Value
ClassName: StringValue Name: ShopGUI Parent: Shop Button
(The part name is exact parent)
Value: Shop1
(The Gui name is exact value)
|
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 08:12 PM |
| No those 2 scripts are in Workspace - Shop - Pawn Shop Button and Workspace - Shop - Shop Button. |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 08:13 PM |
| First one you posted is suppose to go into the PlayerGUI, or the StarterGUI |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 08:16 PM |
but It will not detect the buttons
and I don't have Player Gui in my explorer.
I'm in roblox studio 2.0 |
|
|
| Report Abuse |
|
|
agent0422
|
  |
| Joined: 13 Nov 2010 |
| Total Posts: 185 |
|
| |
|
agent0422
|
  |
| Joined: 13 Nov 2010 |
| Total Posts: 185 |
|
| |
|
|
| 04 Aug 2012 08:43 PM |
| There is no "Player Gui" In Players. |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 04 Aug 2012 08:44 PM |
UGH, King, Learn your way around 2.0 or 1.0 before you come here, ASKING STUPID QUESTIONS LIKE THIS, GO TO BH, NOW! |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 08:53 PM |
| Dude I asked for help, Not for stupid posts like this. |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 04 Aug 2012 09:08 PM |
@King, Get out, LEARN TO SCRIPT
|
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 09:14 PM |
| this is my post YOU GET OUT |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
| |
|
| |
|
|
| 04 Aug 2012 09:43 PM |
mamaguy, stop flaming like an noob. You did not help. Anyway, OP I would advise you to learn to code Lua. Go to wiki.roblox.com, though not everyone can learn from it.
@OP. What does the script do?
------------------------- ~thedestroyer115, an explosion of knowledge~
|
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Aug 2012 09:45 PM |
I made a repost including info, but here it is
I'm loving the Kitteh's RPG kit and I find it really awesome but,
The Shops won't work.
Yes I put Shop1 and SellGui in Lightning Yes I didn't ungroup the buttons. Yes the shop model is in workspace Yes I tryed anchoring it or locking it or cancollide it Yes I tryed contacting Kitteh6660.
No I didn't touch any of the scripts No I don't know much about scripting. No I am not a noob (Played roblox for 2 years)
The Gui's are named
Shop1: For buying swords SellGui: For selling swords
This is the formats
- Workspace -Shop (Model) Regenerate Script -Pawn Shop Button (Part) Script (The one that should open the selling Gui) ShopGUI(StringValue) -Shop Button Script (The one that should open the buying Gui) ShopGui(StringValue)
Both Scripts is this
button = script.Parent
function onTouch(part) local player = game.Players:GetPlayerFromCharacter(part.Parent) if player ~= nil then local GUI = game.Lighting:FindFirstChild(script.Parent.ShopGUI.Value) local AlreadyHaveGUI = player.PlayerGui:FindFirstChild(script.Parent.ShopGUI.Value) if AlreadyHaveGUI == nil then GUI:Clone().Parent = player.PlayerGui else print("Already have GUI!") end end end
button.Touched:connect(onTouch)
This is the properties of the string values
ShopGUI (StringValue For Opening SellGUI)
ClassName: StringValue Name: ShopGUI Parent: Pawn Shop Button Value: SellGui
ShopGUI (StringValue For Opening SellGUI)
ClassName: StringValue Name: ShopGUI Parent: Shop Button Value: Shop1 |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 09:46 PM |
The script is When the player touches 1 of the buttons it opens a buying gui or a selling gui |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 10:02 PM |
Try this.
script.Parent.Touched:connect(function(Hit) if Hit.Parent:findFirstChild("Humanoid") then Player = game.Players:GetPlayerFromCharacter(Hit.Parent) --I think that's correct. game.Lighting["NameOfGui"]:Clone().Parent = Player.PlayerGui end end)
------------------------- ~thedestroyer115, an explosion of knowledge~
|
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 04 Aug 2012 10:40 PM |
@The lol 'like a noob' He is an ungrateful piece of scum who comes here, with free models, and expects us to help him when he insults us. |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 11:00 PM |
The Script didn't work
@mamaguy
haaahahaaha Noob why do you think I still care? lolololol |
|
|
| Report Abuse |
|
|