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: Kitteh6660's RPG Kit

Previous Thread :: Next Thread 
kingelmobap is not online. kingelmobap
Joined: 16 Mar 2010
Total Posts: 297
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
kingelmobap is not online. kingelmobap
Joined: 16 Mar 2010
Total Posts: 297
04 Aug 2012 07:59 PM
I know My forum status is trolling but I'm not trolling.
Report Abuse
xXTheRobotXxAlt is not online. xXTheRobotXxAlt
Joined: 06 Jul 2012
Total Posts: 548
04 Aug 2012 08:00 PM
Give us the broken script?
Report Abuse
kingelmobap is not online. kingelmobap
Joined: 16 Mar 2010
Total Posts: 297
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
xXTheRobotXxAlt is not online. xXTheRobotXxAlt
Joined: 06 Jul 2012
Total Posts: 548
04 Aug 2012 08:08 PM
Is that in the Player GUI?
Report Abuse
kingelmobap is not online. kingelmobap
Joined: 16 Mar 2010
Total Posts: 297
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
kingelmobap is not online. kingelmobap
Joined: 16 Mar 2010
Total Posts: 297
04 Aug 2012 08:12 PM
No those 2 scripts are in Workspace - Shop - Pawn Shop Button and Workspace - Shop - Shop Button.
Report Abuse
xXTheRobotXxAlt is not online. xXTheRobotXxAlt
Joined: 06 Jul 2012
Total Posts: 548
04 Aug 2012 08:13 PM
First one you posted is suppose to go into the PlayerGUI, or the StarterGUI
Report Abuse
kingelmobap is not online. kingelmobap
Joined: 16 Mar 2010
Total Posts: 297
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 is not online. agent0422
Joined: 13 Nov 2010
Total Posts: 185
04 Aug 2012 08:33 PM
PlayerGui is in Players
Report Abuse
agent0422 is not online. agent0422
Joined: 13 Nov 2010
Total Posts: 185
04 Aug 2012 08:34 PM
wait why 2.0?
Report Abuse
kingelmobap is not online. kingelmobap
Joined: 16 Mar 2010
Total Posts: 297
04 Aug 2012 08:43 PM
There is no "Player Gui" In Players.
Report Abuse
mamaguy is not online. 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
kingelmobap is not online. kingelmobap
Joined: 16 Mar 2010
Total Posts: 297
04 Aug 2012 08:53 PM
Dude I asked for help, Not for stupid posts like this.
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
04 Aug 2012 09:08 PM
@King,
Get out, LEARN TO SCRIPT
Report Abuse
kingelmobap is not online. kingelmobap
Joined: 16 Mar 2010
Total Posts: 297
04 Aug 2012 09:14 PM
this is my post YOU GET OUT
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
04 Aug 2012 09:27 PM
At least I can script >_>
Report Abuse
kingelmobap is not online. kingelmobap
Joined: 16 Mar 2010
Total Posts: 297
04 Aug 2012 09:41 PM
At least I don't care.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
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
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
04 Aug 2012 09:44 PM
like a noob*
Report Abuse
kingelmobap is not online. kingelmobap
Joined: 16 Mar 2010
Total Posts: 297
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
kingelmobap is not online. kingelmobap
Joined: 16 Mar 2010
Total Posts: 297
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
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
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 is not online. 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
kingelmobap is not online. kingelmobap
Joined: 16 Mar 2010
Total Posts: 297
04 Aug 2012 11:00 PM
The Script didn't work

@mamaguy

haaahahaaha Noob why do you think I still care? lolololol
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