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

How can i move a model by right clicking on mouse.Hit.p to move to there?

I know it can be done but not sure how to script it because im fairly new at scripting

Model:MoveTo(mouse.Hit.p)
wait()

that's my attempt. help pls

1 comment

0

What went wrong, did you even try it, btw, use remote events, mouse doesn't exist for the server

1 answer

model = game.Workspace.Model
function onClick(Mouse)
	location = Mouse.Hit
	location.CFrame = model.Position.CFrame
end
script.Parent.Selected:Connect(onClick)

11 comments

0

thanks! I don't know this either.

0

lol

0

Maaruv not a valid member of workspace?

0

what do u mean? as in server script?

0

u cant get a mouse in a server script...?

0

look at that one

0

that one uses a HopperBin though, i'm not sure if you're looking for that

0

how do u insert a hopperbin object? i cant find it anywhere

0

right click >> Insert >> HopperBin

0

i tried that in the starterpack, cant find it. even in advanced objects there isnt a hopperbin. only tools

0

^ that's because they're deprecated

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