Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Whole a lof of questions from a beginner scripter?

It had been only a week since i've began reading and trying to code myself, And i can sufficently use the lua to change brick colors, insert things into the mentioned parent, remove it, move it away, explosions, materials and all.

q1: i've seen a lot of places where you could click items and they get picked up, inventory slots for no dupe, say, primary and secondary weapons, and grenades. how do i do that?

q2: there are places where you cannot deselect weaponry, you sorta just can swap through weapons with 1,2,3 and scroll, but not deselect weapons, or have them in the default backpack. how?

q3: random map generator, i'm trying to make a tactical shooter game with already premade assets to the game, and i've seen a lot of those games where random map generation is essential.

q4: rounds. like, in counter strike. there are 5 players on each team. five down, team wins. back to the random map, once the round is over, the game would generate a new map each round, and after 4 rounds, switch teams. 8 rounds total then back to lobby.

q5: destructible walls? kick doors to open them?

Edit #1: q6: weapon drops from the backpack when died and keep weapons from rounds to rounds if you didn't die? weapons don't replenish on the spawn? (like, a table having 10 pistols and two smg's, take one smg and four pistols, on the next round, they are exactly 1 smg and 6 pistols that remained on the last round?)

Edit #2: q7: back to the map part. is it possible to make node generation with premade models? like having corners and walls, walls with windows and the doors, and make it generate randomly?

whoever can answer and help me is getting kudos

6 comments

1

I don't think a beginner scripter with only a week of experience should go into these topics right away. It is 10x more simpler to learn scripting and then try to make it yourself...

0

i never asked people to make these for me, only a brief tutorial or something, you see. something i could learn of

0

^

0

guessing that is a no then

0

Some of this stuff is super complex, especially depending on how good and polished they are. Just start learning some simpler things first.

0

i would if i knew where. roblox doesn't help much with the scripting.

2 answers

1 : You use a string value or some sort of value stored in the player or in the GUI and so when you pick it up it stores the item name in that value and then destroys the model in the workspace.

2 : It uses a custom tool system that relies on welds and a local script usually in the StarterCharacterScripts or StarterPlayerScripts

3 : like this? wiki generation

4 : Not entirely sure how to do that, You'd have to have some way of storing the amount of players that are dead per team basically use the .Died Function to check if they're dead, what team they were on and then increase a value and if that value reaches a certain point then the other team wins..

There's plenty of Team Scrambling Scripts in the free models

5 : Not sure

6 : You would have to use NumberValue's and a table and basically check how many instances of that object are in the Workspace, add them to a table and then for every object that is there add 1 to the number Value

These sound very basic, That's all I needed. Thank you. I'll look forward to making these later on.

1 comment

0

If I helped please do accept answer

This discussion is preserved as it was. New answers, comments, and votes are closed.