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

camera script not working in play mode ?

Asked by 9 years ago

freeze character movement, view close up, and freeze camera.. freeze camera not working in play mode.. also cant figure out how to make it face the front of the character

local ting = 0 
function onTouched(hit)
    if ting == 0 then 
    ting = 1 
    check = hit.Parent:FindFirstChild("Humanoid") 
    if check ~= nil then 
        local user = game.Players:GetPlayerFromCharacter(hit.Parent)
        repeat wait() until workspace.Camera
        user.CameraMaxZoomDistance = 7
user.CameraMinZoomDistance = 7
wait(0.5)
game.Workspace.CurrentCamera.CameraType = "Scriptable"
user.DevComputerMovementMode = "Scriptable"
user.DevTouchMovementMode = "Scriptable"
    end
    ting = 0 
    end
end
script.Parent.Touched:connect(onTouched)
0
Why are you using the DevComputerMovementMode? I believe that only works on Client. woodengop 1134 — 9y
0
it will freeze the character's movement Layfonex 0 — 9y
0
DevComputerMovementMode, only works on client I think. woodengop 1134 — 9y
0
no its working in play mode and i found a way to make the camera freeze put "game.Workspace.CurrentCamera.CameraType = 6" into a local script then have it cloned to the player Layfonex 0 — 9y
0
Some things that only work on the client will still work in Play Solo because of the nature of Play Solo. However if you want the character to freeze why not anchor the Torso? Perci1 4988 — 9y

Answer this question