I'm trying to make it so when i click it places where the mouse is.
ERROR: CoordinateFrame is not a valid member of PlayerMouse
local Player = game.Players.LocalPlayer local Mouse = Player:GetMouse() local Objects = game.ReplicatedStorage.Objects.Platform Mouse.Button1Up:connect(function() Objects:Clone().Parent = game.Workspace Objects:MoveTo(Mouse.CoordinateFrame) end)
Because im pretty sure you cant use CoordinateFrame on the Mouse. From what i read, its Origin(so your just replacing words). The Wiki should tell you what you need to know http://wiki.roblox.com/index.php?title=API:Class/PlayerMouse
To properly get the 2D position of the PlayerMouse object, the best route is to get the Mouse.Hit
property:
Objects:MoveTo(Mouse.Hit)
I hope this helped!