#Connect Player to camera when button clicked

140 messages · Page 1 of 1 (latest)

agile obsidian
#

OK

lost stream
#

guys help me 😭

undone pewter
#

wha?
how do you want to connect a player to a camera

agile obsidian
#

so

#

button.activated

#

then

#

create function

#

player.currentcamera.cameraSubject = part

#

part is the 2nd camera

#

it only works in local script

undone pewter
agile obsidian
#

?

#

currentCamera is only in local script

undone pewter
#

yea...

#

you dont even need remote events for that

#

just use a LocalScript to detect the button press

agile obsidian
#

when did i say remote function

#

:v

undone pewter
#

wait.. you arent even the guy that made this post...

agile obsidian
#

bruh

lost stream
#

ty @agile obsidian

agile obsidian
#

np

lost stream
#

does itwork also whith a proximity prompt?

agile obsidian
#

yeah

undone pewter
#

yellow names Clownin

lost stream
#

ok

#

what ur problem robbe

agile obsidian
#

LOLL

lost stream
#

this saloon is made for helping beginner

#

that what he is doing

#

u are the cringe man rn

undone pewter
#

yea, i made a mistake
i thought the other dude made the post and describes whats the issue is
yellow names all look the same to me classy

lost stream
#

ok

#

np

agile obsidian
lost stream
#

yh ok u deff cringe

undone pewter
chilly creekBOT
#
wolfman873
Server Avatar
lost stream
#

well now that @agile obsidian made what we asked for i can end this saloon

#

without u beeing usefull at all

undone pewter
#

i would have helped if the other dude wasn't there grrrr

agile obsidian
#

what did i do now

#

help him

undone pewter
#

uuh yea

agile obsidian
#

ur mad cuz of that??

lost stream
#

@agile obsidian what is the keybind for see where is pointing a part

undone pewter
#

nuh

agile obsidian
lost stream
#

wyz

#

xyz

agile obsidian
#

u mean

undone pewter
#

Part.CFrame.LookVector
or Part.Orientation?

agile obsidian
#

where the player is seeing

lost stream
lost stream
agile obsidian
#

use what robbe said

lost stream
#

bcs idk where my camera is looking

undone pewter
#

Camera.CFrame.LookVector is the direction hes looking

#

(not the angle)

lost stream
#

ok

#

@undone pewter finally usefull

agile obsidian
#

lel

lost stream
#

i do function(name) () ?

agile obsidian
#
script.parent.activated:connect(function()
--do stuff

)
#

assuming the local script is the child of the proximity rpompt

lost stream
#

Im lost 😦

#

@agile obsidian

agile obsidian
#

hmm

#

local camera = game:GetService("Players").LocalPlayer.CurrentCamera

#

and

#

make it like

#

Script.Parent.Triggered:Connect(function()

end)

#

and

lost stream
#

ut idk where i need to place that 😭

agile obsidian
#

copy the script and post here

lost stream
#

wait

#

local button = script.Parent
local targetcamera = script.Parent.Parent.Parent.cameraloc.Camera

if button.Triggered then
script.parent.activated:connect(function()

end)

end

agile obsidian
#
local button = script.Parent
local camera = script.Parent.Parent.Parent.cameraloc.Camera
local plr - game:GetService("Players").LocalPlayer
script.Parent.Triggered:Connect(function()
    plr.CurrentCamera.CameraSubject = camera
    end)
end
#

and

#

camera should not be a camera

#

it should be a part

lost stream
#

oh

#

that not good?

agile obsidian
#

yeah

#

do

#

local button = script.Parent
local camera = script.Parent.Parent.Parent.cameraloc
local plr - game:GetService("Players").LocalPlayer
script.Parent.Triggered:Connect(function()
plr.CurrentCamera.CameraSubject = camera
end)
end

#

make sure to place cameraloc to the desired position

#

does it work?

lost stream
#

look

agile obsidian
#

ohh mb

#

its =

#

not -

lost stream
#

its still not xworking 😭

#

are u on pc rn?

agile obsidian
#

show error'

#

yeah

lost stream
agile obsidian
#

oke

lost stream
agile obsidian
#

my user is Xyz_HeadBacon

lost stream
#

added u

agile obsidian
#

u dont have to add

#

go to studio

#

there is a logo to add players there

lost stream
#

but i cant change ur perm if we arent friend

agile obsidian
#

u can??

lost stream
agile obsidian
#

odd

#

wait il add u

#

added

lost stream
#

GOOD U CAN JOIN

agile obsidian
#

k joining wait

leaden needle
lost stream
agile obsidian
leaden needle
lost stream
#

je suis nouiveau c pas ma faut 😭

leaden needle
#

Trkl

#

C’est comme ça qu’on apprend je suis aussi passé par là

agile obsidian
#

where is the script

lost stream
#

in shopsystem /noob / proximity prompt

agile obsidian
#

k

agile obsidian
lost stream
#

WOW TY

agile obsidian
#

np

lost stream
#

i will just need to rework the shop lol

agile obsidian
#

kek

lost stream
#

ty and comeback on my map whenever u want 🙂

agile obsidian
#

okeee

#

cya

lost stream
#

just where did u set the script? @agile obsidian

agile obsidian
#

starterplayer

lost stream
#

ok ty