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

Is This For A LocalScript Or Server Script?

Asked by 10 years ago
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

Log in to vote
0
Answered by
Gamenew09 180
10 years ago

You're trying to get the LocalPlayer's mouse which you can only do in a LocalScript.

So it is a LocalScript.

Ad

Answer this question