I tried to do a block that moves when i click somewhere. When i click, a block appears, but in the 0, 0, 0 position..
The code
local PL = game.Players.LocalPlayer
local MS = PL:GetMouse()
local RC = game.ServerStorage.Used_Parts.MovableRedCube
function Move()
local RB = RC:Clone()
RB.Position = Vector3.new(MS.Hit)
RB.Parent = workspace
end
MS.Button1Up:connect(Move)

1 comment
This is succesfully working! Thanks for the help!