#Connect Player to camera when button clicked
140 messages · Page 1 of 1 (latest)
guys help me ðŸ˜
wha?
how do you want to connect a player to a camera
so
button.activated
then
create function
player.currentcamera.cameraSubject = part
part is the 2nd camera
it only works in local script
and what is the problem there?
yea...
you dont even need remote events for that
just use a LocalScript to detect the button press
wait.. you arent even the guy that made this post...
bruh
ty @agile obsidian
np
does itwork also whith a proximity prompt?
yeah
yellow names 
this saloon is made for helping beginner
that what he is doing
u are the cringe man rn
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 
clown emoji, u didnt mean that
yh ok u deff cringe

well now that @agile obsidian made what we asked for i can end this saloon
without u beeing usefull at all
i would have helped if the other dude wasn't there 
uuh yea
ur mad cuz of that??
@agile obsidian what is the keybind for see where is pointing a part
nuh
wdym by where is pointing a part?
u mean
Part.CFrame.LookVector
or Part.Orientation?
where the player is seeing
idk im beginner bro
yh
use what robbe said
bcs idk where my camera is looking
lel
script.parent.activated:connect(function()
--do stuff
)
assuming the local script is the child of the proximity rpompt
hmm
local camera = game:GetService("Players").LocalPlayer.CurrentCamera
and
make it like
Script.Parent.Triggered:Connect(function()
end)
and
ut idk where i need to place that ðŸ˜
copy the script and post here
wait
local button = script.Parent
local targetcamera = script.Parent.Parent.Parent.cameraloc.Camera
if button.Triggered then
script.parent.activated:connect(function()
end)
end
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
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?
could u join me?
oke
there is none it just dont work
my user is Xyz_HeadBacon
added u
but i cant change ur perm if we arent friend
u can??
GOOD U CAN JOIN
k joining wait
T’es en galère
nn pk
i trinke pisse
Tu demandes à l’autre de venir dans ton jeu carrément
je suis nouiveau c pas ma faut ðŸ˜
where is the script
in shopsystem /noob / proximity prompt
k
it works now
WOW TY
np
i will just need to rework the shop lol
kek
ty and comeback on my map whenever u want 🙂
just where did u set the script? @agile obsidian
starterplayer
ok ty