#third person when part touched

51 messages · Page 1 of 1 (latest)

worn spindle
#

local part = script.Parent
local player = game.Players.LocalPlayer

local function onTouch()
player.CameraMode = Enum.CameraMode.Classic
end
part.Touched:Connect(onTouch)
this script doesnt work

gleaming remnant
#

use Camera.CameraType

worn spindle
#

ok

gleaming remnant
#

and the script should be local

worn spindle
#

wait

#

player.CameraType = Enum.CameraType.Classic?

gleaming remnant
#

Camera.CameraType = Enum.CameraType.Custom

worn spindle
#

doesnt work

gleaming remnant
#

show cript

#

and tell where is it localted

worn spindle
gleaming remnant
#

local Camera = workspace.CurrentCamera

worn spindle
#

still doesnt work

#

brb

#

back

gleaming remnant
#

local scripts dont work in workpace

worn spindle
#

oh

gleaming remnant
#

they only work in starterplayerscripts and inside player character

#

however you can use regular script with runcontext set to client

#

and it will work

worn spindle
#

but it doesnt work

#

wait

#

lemme check soomething

#

idk

#

i gotta find custom camera thing

gleaming remnant
#

add print("activated") inside your onTouch function to check if it runs

worn spindle
#

ok

#

the script works

#

but it doesnt go third person

west swan
#

have you got a first person lock on

worn spindle
#

yea

west swan
#

does the script have errors

#

like

#

any errors at all

worn spindle
#

no

west swan
#

thats confusing

#

it should work

worn spindle
#

i think cuz the camera that shows your body thing

#

is the problem

west swan
#

what section of script is in charge of changing you camera view to third person

worn spindle
#

what

#

this is the scrtip

#

local part = script.Parent
local player = game.Players.LocalPlayer
local Camera = workspace.CurrentCamera

local function onTouch()
print("activated")
Camera.CameraType = Enum.CameraType.Custom
end
part.Touched:Connect(onTouch)

#

this the script

west swan
#

is it in a localscript

worn spindle
#

normal script on client

slender hillBOT
#

studio** You are now Level 6! **studio

west swan
#

ok gimme 2 secs

worn spindle
#

ok

#

brb