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

How do i make my part follow the position of my mouse?

Asked by 8 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.

bin = script.Parent sfx = bin.Sound

function teleportPlayer(pos)

local char = game.Workspace.Part

char.CFrame = CFrame.new(Vector3.new(pos.x, pos.y + 7, pos.z))

end

enabled = true function onButton1Down(mouse) if not enabled then return end

local player = game.Players.LocalPlayer
if player == nil then return end
local cf = mouse.Hit
teleportPlayer(cf.p)
sfx:play()

end

I don't find my error.

0
We didn't find your error either, because you didn't give one. User#6546 35 — 8y
0
nvm i solved it, how do i mark as solved ? Versault 0 — 8y

Answer this question