#I need help with my placement script

1 messages · Page 1 of 1 (latest)

queen obsidian
#

im trying to make a placement system for my game where i put all my models in replicated storage and made some code where you click on a textbutton in a gui, the model appears in the game and you control with your mouse where to place it but the models just scroll into the centre of my screen

late musk
#

heyt im not here to help you about this post but you may want to take a look to what guard clauses are in scripting

jade wasp
#

its trying to place the model on top of itself

#

put clone.Parent = workspace AFTER clone:MoveTo(mouse.Hit.Position)

#

also you might wanna put the root of the model on the bottom so it doesnt place halfway in the ground

queen obsidian
#

Right but what about the model zooming into the middle of the camera

queen obsidian
#

Ok thanks I'll try it out

#

i tried what you did it didnt work the scrolling thing still happens and instead of putting 2 models on top of each other it places 2 models left and right to each other