Mouse = game.Players.LocalPlayer:GetMouse()
Mouse.KeyDown:connect(function (key)
if key == "G" then
Part = Instance.new("Part", game.Workspace)
Part.Position = game.Players.LocalPlayer.Character.Torso
end
end)
COMMUNITY QUESTION
Is This For A LocalScript Or Server Script?
1 answer
You're trying to get the LocalPlayer's mouse which you can only do in a LocalScript.
So it is a LocalScript.
This discussion is preserved as it was. New answers, comments, and votes are closed.
