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

How could I make this part spawn near the player and not above?

Asked by 10 years ago

Everytime I click it spawns above the player,I wan't to spawn the near the player,how would I do that?

01---------------Vairbles---------------
02local Tool = script.Parent
03local Handle = script.Parent.Handle
04local Player = game.Players.LocalPlayer--Gets LocalPlayer(which is the player with tool or script)
05local PlayersMouse = Player:GetMouse()--Gets the Players mouse with the GetMouse() method
06local Clicked = false
07----------------EquipedEvent-------------
08    Tool.Equipped:connect(function(Mouse)
09        ---------------------Button1Down---------------------------------
10        Mouse.Button1Down:connect(function()--When the player press the right button(Button1) it will do the thing below
11            Mouse.Icon  = "http://www.roblox.com/asset/?id=13890082"--Changes the crusor Icon to a plus sign
12        Handle.BrickColor = BrickColor.new("Bright green")
13                Clicked = true
14                if  Clicked == true
15                    then
View all 32 lines...

1 answer

Log in to vote
1
Answered by 10 years ago

Try setting the brick's spawn location next to the wherever the player spawns. Use (0,0,0) except set the location you want.

0
Example please? kevinnight45 550 — 10y
0
Well, you'll need to find the coordinates next to the spawn. Laserpenguin12 85 — 10y
Ad

Answer this question