Everything is in the title.
Script :
--This code is in a localscript that is inside the tool local C = game.Workspace["Guest 666"] --The Npc local P = game.Players.LocalPlayer local M = P:GetMouse() script.Parent.Activated:connect(function() local H = M.Hit C.Torso.CFrame = H end)
I don't know where is the error and i don't know if i should use a normal script
Try using this code:
local C = workspace:FindFirstChild("Guest 666") C.PrimaryPart = C.Torso local P = game:GetService("Players").LocalPlayer local M = P:GetMouse() script.Parent.Activated:connect(function() local H = CFrame.new(M.Hit.p) --get rid of rotation C:SetPrimaryPartCFrame(H) end)