Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Is This For A LocalScript Or Server Script?

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)

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.