Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How Do I Make Weapons Spawn In Certain Places?

Asked by 7 years ago

So, I Made An Arena, And I Want Players To Teleport To It, (Not Part Of This Question), And Then Have The Arena Spawn Items In Certain Places, I Only Recently Got Into Scripting, And I Would Like Help With This, Thank You.

2 answers

Log in to vote
0
Answered by 7 years ago

Part.CFrame=CFrame.new()

Ad
Log in to vote
0
Answered by 7 years ago

You could do something like this. Place a part where you want the gun to spawn. Then change the parts CanCollide to false and anchor the part. Rise the part up a bit off the ground.

Script:

local placeToGo = game.Workspace.PartToTele local gun = game.ServerStorage.Weapons.Gun1:Clone() gun.CFrame = placeToGo.CFrame

This is untested but I am sure it will work and if not, hopefully it helped!

Answer this question