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

How can i get an weapon after my player teleported to another map?

Example: I have an round system or an timer.After the intermission loading bar screen gui ends after 20 seconds or less.My player teleports from the lobby to the GameArea.How can i put an weapon after he gets in the GameArea?

Can someone link me an youtube video or something please?

2 answers

✓ Accepted answer

I thought of sending data with TeleportService but that doesnt support objects, you are then forced to add a script which gives you the weapon when you have entered the map. I am assuming you want the player to get the weapon immediately with no interference whatsoever.

Heres a script i made, put it in serverscriptservice:

local weapon = game.ReplicatedStorage.CHANGETOWEAPON

game.Players.PlayerAdded:Connect(function(player()
	local clone = weapon:Clone()

	clone.Parent = player.Backpack
end)

if you are not looking for this type of script then leave a comment.

2 comments

0

How can i choose the weapon that i want with this script?

0

change the variable at the top, change the whole location to where ur weapon is

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