Zeetio_YT
|
  |
| Joined: 01 Jun 2017 |
| Total Posts: 17 |
|
|
| 28 Jun 2017 10:53 PM |
| Hey guys I am making a shop GUI (Not a closing and opening) I watched a lot of youtube vids and got all the scripts yet you can't buy anything (Yes there is money in the game) Please help me! |
|
|
| Report Abuse |
|
|
Aethex
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
| |
|
|
| 28 Jun 2017 10:56 PM |
button.MouseClicked:connect(function() if not (bought) then bought = true game.Players.LocalPlayer.leaderstats.Money.Value = game.Players.LocalPlayer.leaderstats.Money.Value - 100 end end)
Not too hard. |
|
|
| Report Abuse |
|
|
| |
|
|
| 28 Jun 2017 10:57 PM |
MouseButton1Click*
It's late.. |
|
|
| Report Abuse |
|
|
Aethex
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
|
| 28 Jun 2017 10:58 PM |
| @BunnyBoy26 Your "Beginner" rank in Scripting Helpers is quite understandable. |
|
|
| Report Abuse |
|
|
|
| 28 Jun 2017 10:59 PM |
| Excuse me? FYI I was at the highest rank... idk what happened.. |
|
|
| Report Abuse |
|
|
Aethex
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
|
| 28 Jun 2017 11:01 PM |
| You haven't even registered on the website. |
|
|
| Report Abuse |
|
|
|
| 28 Jun 2017 11:04 PM |
Oh, it looks like they had a bit of a paradigm shift. I had achieved the highest rank when the requirements weren't based on their website. Thanks for informing me, I suppose. |
|
|
| Report Abuse |
|
|
Aethex
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
|
| 28 Jun 2017 11:09 PM |
| the requirements have been based on their website since late 2013, man |
|
|
| Report Abuse |
|
|
|
| 28 Jun 2017 11:17 PM |
| Yeah, I'm pretty sure I took their little test before then; I recall doing something with OOP for the rankup. I don't get why this seems more important to you than to me. If the reply I posted sucked, how about you tell me why instead of clicking my primary group and searching my name in the members? |
|
|
| Report Abuse |
|
|
Aethex
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
|
| 28 Jun 2017 11:29 PM |
bunnypls all i had to do was go to your profile, it shows the rank there
i lol'd at "If the reply I posted sucked, how about you tell me why" |
|
|
| Report Abuse |
|
|
|
| 28 Jun 2017 11:33 PM |
| Well I think it's just fantastic that you lol'd at something I said. Until you follow up on it, though, I have no reason to believe you are in any place to put me down. |
|
|
| Report Abuse |
|
|
Aethex
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
|
| 28 Jun 2017 11:51 PM |
lol, you removed your primary group
but
@BunnyBoy26 OP already said they had scripts. They didn't ask how to do anything, they asked for help with what they already have. Giving him a whole other script won't help him at all. Besides this, you posted a terribly formatted script without declaring any of the variables you used, you didn't even provide an explanation on any of it, and forget all of that--your code doesn't even work.
I'll add in the correction you made to the event you used:
button.MouseButton1Click:connect(function() -- Error already, where was the definition of "button"? if not (bought) then -- Another error, "bought" wasn't defined; I won't mention the parentheses considering they can be considered a style preference and would barely have any impact on performance anyway (I use semicolons in my code, so I can't say anything) bought = true -- This is the first definition of "bought", it's not even a local variable :/ game.Players.LocalPlayer.leaderstats.Money.Value = game.Players.LocalPlayer.leaderstats.Money.Value - 100 -- what is this, what even; where are your variables? why didn't you previously define the player? why didn't you previously define the leaderstats? the money? and oh god, why are you recommending storing money like this in a leaderboard inside of the player? you're literally asking for exploiters to give themselves infinite money, in what way is this secure? end end) |
|
|
| Report Abuse |
|
|
|
| 29 Jun 2017 06:49 PM |
Yeah, you are definitely the one with the problem if you think you can just copy and paste my text verbatim into a script and expect it to work. I mean, that is one of the rookiest of mistakes I see from ABSOLUTE beginner scripters. What was I supposed to do to figure out the references needed with what I was given, read his mind? Sorry for not using my telepathic powers..
What I posted was a general format to do what he was asking. Anyone who has even the slightest of scripting knowledge and intuition can use common sense to substitute the proper reference to 'button', integrate the 'bought' boolean to prevent buying something more than once, and configure the process of updating whatever value is storing the money.
By the way, you aren't entirely truthful in your response; it seems like you think the amount of characters in a script has some effect on performance, all else equal. |
|
|
| Report Abuse |
|
|
Fangous
|
  |
| Joined: 03 Jul 2010 |
| Total Posts: 4448 |
|
|
| 29 Jun 2017 07:35 PM |
| well that was fun to read lol |
|
|
| Report Abuse |
|
|
Chrounum
|
  |
| Joined: 04 Apr 2015 |
| Total Posts: 2911 |
|
|
| 29 Jun 2017 07:40 PM |
what was this forum post though.
xd this is a signature
R$27 |
|
|
| Report Abuse |
|
|
Aethex
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
|
| 29 Jun 2017 08:10 PM |
First, I would like to post a copy of what OP wrote: "Hey guys I am making a shop GUI (Not a closing and opening) I watched a lot of youtube vids and got all the scripts yet you can't buy anything (Yes there is money in the game) Please help me!"
Now what you wrote:
"Yeah, you are definitely the one with the problem if you think you can just copy and paste my text verbatim into a script and expect it to work. I mean, that is one of the rookiest of mistakes I see from ABSOLUTE beginner scripters."
Did you read OP's post? His entire scripting knowledge consists of a few YouTube videos, and his code doesn't even work. Most of the people who come here, the ROBLOX Scripter forums, are of this beginner class. This isn't even the right forum category to get help for code, the category "Scripting Helpers" was merged with Game Design, not Scripters.
"What was I supposed to do to figure out the references needed with what I was given, read his mind? Sorry for not using my telepathic powers.."
...What? What 'references needed' are you referring to? We need code to be able to help him. With your so-called 'experience' in helping scripters, I would assume you would know how to read help threads by now. Understand what is being asked before posting random code (that doesn't work) half-heartedly.
"What I posted was a general format to do what he was asking."
Except it wasn't what he was asking. He has scripts already. He wants to know what he did wrong and how to fix it. The arbitrary code you posted doesn't even have an explanation. How do you know that even uses the system your code does? Why would he bother with such an insecure leaderboard when the YouTube videos he watched told him they're unsecure? How do you know he isn't trying to set up a system where the server has to verify all money moving through the user? In no way was your 'general format' of any use to the OP.
"Anyone who has even the slightest of scripting knowledge and intuition can use common sense to substitute the proper reference to 'button', integrate the 'bought' boolean to prevent buying something more than once, and configure the process of updating whatever value is storing the money."
Sure, probably, but you didn't even bother to explain the code offered that no one asked to receive. The OP specifically stated he already had code that he created from watching YouTube videos. As I reiterate it again, you don't know what system he uses.
I would also like to point out that you seem to have ignored the rest of my comments. The biggest flaw in your code besides it not even work was with security. In no way should the practice of using a leaderboard to store money, which the client will have access to extremely easily, ever be accepted. If your answer with that code were to be posted on the Scripting Helper's (which you claim to be formerly a member of the highest rank) website, it would be severely downvoted--to be fair, though, so would the question.
"By the way, you aren't entirely truthful in your response; it seems like you think the amount of characters in a script has some effect on performance, all else equal."
Did you read my comment? I said that the different in the performance is negligible, so I wouldn't say anything bad in regards to it. However, you appear to actually be in the wrong now claiming that there is no effect with more characters added. In what way did you figure that more characters would have no difference? Any single increase in a character means just that much more code needed to be looked through, compiled, and run. Despite this very tiny difference which is almost always negligible, there is nonetheless still a difference. |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2017 06:48 PM |
I never claimed that my code was perfect by any means. From on the initial post by Zeetio, I gave a quick and basic way of making a button. I used a leaderboard not because I think it is the best way of accomplishing the task, but because that is what seems (from my experience) to be the most common method most people who ask questions here use.
It seems I have to reiterate because you can't grasp what I said: OF COURSE the code I posted doesn't work ALONE. I don't have the reference to the button, I don't have the preferred integration for a system that prevents buying more than once, and I don't have information as to how to store the value for Money.
The amount of characters used in a script, all else equal, has no effect on running the code: 'if not bought then' and 'if not (bought) then' compile to the same thing. This machine code is what matters to the system, not the physical text of the script.
Staying truthful, I must concede to you that I didn't explain my code. I thought the loose ends were apparent enough, but you are right; I should have made it more elaborate and given explanations. This was just a quick answer, though.
Look man, you really don't need to be flaming me so derisively right now. If you felt obligated enough to criticize Zeetio for posting in the wrong forum, you might as well get out yourself because this forum also isn't for trolls who seem more adamant about chastising other participants than actually helping towards the problem at hand.
Sure, he claim to already have a script, but at least I tried to provide Zeetio with SOMETHING, which was difficult given the lack of information with which to work. All you seem to care about is refuting my comments one by one and putting me down.
Go ahead and fight back, copying this post to include in your pugilistic response as if I can't just scroll up and read the original. I'm done debating you; It's not worth it. I'd rather move on to other threads where I can help out than proclaim myself as the "winner" to this little game you want to play. |
|
|
| Report Abuse |
|
|
| |
|
Aethex
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
|
| 01 Jul 2017 01:20 AM |
"I'm done debating you; It's not worth it."
lol ok |
|
|
| Report Abuse |
|
|
Mr_Pure
|
  |
| Joined: 28 Jun 2015 |
| Total Posts: 2482 |
|
|
| 01 Jul 2017 01:46 AM |
all you had to do aethex was keep your mouth shut, you can't even do that.
This is siggy. He is does not like people. He will bite. |
|
|
| Report Abuse |
|
|
Aethex
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
|
| 01 Jul 2017 01:48 AM |
| @Mr_Pure does that mean you think he's right? lol |
|
|
| Report Abuse |
|
|
Mr_Pure
|
  |
| Joined: 28 Jun 2015 |
| Total Posts: 2482 |
|
|
| 01 Jul 2017 01:50 AM |
| No, I'm not picking or choosing here, but he posted a reply. When he did you slightly insulted him, which didn't help this wall of ##### text. This is siggy. He is does not like people. He will bite. |
|
|
| Report Abuse |
|
|
Aethex
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
|
| 01 Jul 2017 01:51 AM |
| can you like rephrase that, I truly don't understand what you just said |
|
|
| Report Abuse |
|
|