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

I am trying to make my character camera to be stuck at a part in workspace can anyone help?

Asked by
WN0820 11
4 years ago

I am trying to make a character be locked to a part in workspace but when they click spawn it doesn't get locked anymore here is the script I tried I put it as a script in workspace

local plr = script.Players.LocalPlayer

if plr:LoadCharecter() == false then
    game.StarterPlayer.CameraMode.Classic = false
    game.plr.CamerMode = game.Workspace.Camera
end


if plr:LoadCharacter() == true then
    game.StarterPlayer.CameraMode.Classic = true
end

and my spawn is this

script.Parent.MouseButton1Click:connect(function()
    script.Parent.Parent.Visible = false
end)

when I click spawn it just deletes the gui if you can help me combine those both I am really thankful

1 answer

Log in to vote
0
Answered by
Maxis_s 97
4 years ago

There's a typo at line 05, Script 1.

Instead of "CamerType", you gotta write "CameraType".

Hope this helps!

-Maxis_s

0
But how does it do that when I press spawn the camera goes back to normal WN0820 11 — 4y
Ad

Answer this question