I'm making a game called Intensity, it's a First and 3rd person shooter. At the moment my GUI when clicked gives the player that gun and the GUI is disabled until they respawn/die. I want it so they spawn on a SpawnLocation of red/blue and teleport to a certain place in the map, I guess this would involve co-ordinates.
So the script wants to be like this..
--Once player selects gun, is cloned from Lightening into backpack --GUI is disabled --Automatically teleport to an area of the map --When die the GUI reappears --Repeats above

4 comments
Where would you put this script?
It's supposed to be placed inside a button ;)
Okay.. at the moment there's a Local script inside the main script. I have the guns inside the text boxes, so when the player clicks on it, the local script clones it and GUI disables.. where would I put the guns in your script?
If you want to add a line of code that gives the player a gun, put it at line 2