#Custom camera

169 messages · Page 1 of 1 (latest)

modest stag
#

So this is the thingie...
Im building up the tweening stuff, thats not part of the problem.
I set the cframe of the current-cam to the paart but when I playtest it it doesnt work (no errors shown on output)
I'm doing all of this in one script because i dont know how to transmit info between scripts, so either type of solution is welcome!


local Camset = game:GetService("Workspace"):FindFirstChild("Camset")
local cam1 = Camset.cam1
local cam2 = Camset.cam2
local cam3 = Camset.cam3

local twink = game:GetService("TweenService")
local twinfo = TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false, 0)

local Plrcam = game.Workspace.CurrentCamera
Plrcam.CameraType = Enum.CameraType.Scriptable
Plrcam.CFrame = cam1.CFrame

gui.Black.Visible = true
gui.Frame.Visible = true
gui.TextButton.Visible = true

gui.Black.MouseMoved:Once(function()
    repeat
        gui.Black.BackgroundTransparency += 0.01
        wait(0.01)
    until gui.Black.BackgroundTransparency == 1
end)

gui.TextButton.MouseButton1Click:Connect(function()
    gui.Frame.Visible = false
    gui.TextButton.Visible = false
    gui.Black.Visible = false
    cam3.Transparency = 1
    cam2.Transparency = 1
    cam1.Transparency = 1
end)
tame vine
#

One message removed from a suspended account.

modest stag
#

why does it just

#

refuse

tame vine
#

One message removed from a suspended account.

modest stag
#

it wont work

#

(fyi script is normal and set inside a screengui)

tame vine
#

One message removed from a suspended account.

modest stag
#

uh

#

yes

#

im guessing it needs to be local

#

but then id need to know how to trigger script-to-script

broken larkBOT
#

studio** You are now Level 1! **studio

tame vine
#

One message removed from a suspended account.

vestal tundra
modest stag
#

trouble at working with script to part

#

read up

vestal tundra
#

bro just name a part to camera

modest stag
#

huh

tame vine
#

One message removed from a suspended account.

vestal tundra
#

put a code like this game.Workspace.CameraType.Enum.Scriptable

modest stag
#

workspace.CameraType?

vestal tundra
#

yeah

modest stag
#

or workspace.camera.cameratype

vestal tundra
#

The Camera is in workspace

modest stag
#

what

#

I-

vestal tundra
modest stag
#

;-;

vestal tundra
#

I'm stupid

modest stag
#

its ok so am i

vestal tundra
#

no your smart

modest stag
#
Plrcam.CameraType = Enum.CameraType.Scriptable
Plrcam.CFrame = cam1.CFrame```
#

this wont work tho

vestal tundra
#

yeah

modest stag
#

i tested it its literally the original script

vestal tundra
#

theres nothing to trigger the CFrame

tame vine
#

One message removed from a suspended account.

modest stag
#

?

vestal tundra
modest stag
#

im guessing variables? idk how to use those

tame vine
modest stag
#

how

vestal tundra
#

its gotta wait until the CFrame is found but thats hard to code

tame vine
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

vestal tundra
#

i would use his way

tame vine
#

One message removed from a suspended account.

vestal tundra
#

but then you gotta use OnServer

tame vine
#

One message removed from a suspended account.

#

One message removed from a suspended account.

vestal tundra
#

yeah like that i just forgot

tame vine
#

One message removed from a suspended account.

#

One message removed from a suspended account.

modest stag
#

ok whr do i put th local script

tame vine
#

One message removed from a suspended account.

#

One message removed from a suspended account.

vestal tundra
tame vine
#

One message removed from a suspended account.

#

One message removed from a suspended account.

vestal tundra
#

ik

tame vine
#

One message removed from a suspended account.

vestal tundra
#

use Capital letter to

modest stag
#

lik this?

vestal tundra
#

no

tame vine
#

One message removed from a suspended account.

modest stag
#

huh

tame vine
#

One message removed from a suspended account.

vestal tundra
#

RemoteEvent.OnServerEvent

modest stag
#

i mad a locaal script

tame vine
#

One message removed from a suspended account.

#

One message removed from a suspended account.

vestal tundra
#

you mean in replicatedstorage

modest stag
#

got it

#

what dos this silly littl thundr do

vestal tundra
#

its a remote event

modest stag
#

how does it connect both scripts?

tame vine
#

One message removed from a suspended account.

modest stag
#

ohhh

broken larkBOT
#

studio** You are now Level 2! **studio

vestal tundra
#

it fires the remote event that enables the other script

#

if you code that

modest stag
#

remoteevent:OnServerEvent:Connect() is the send script or the receive script?

tame vine
#

One message removed from a suspended account.

#

One message removed from a suspended account.

vestal tundra
#

yeah

tame vine
#

One message removed from a suspended account.

modest stag
#

yiks

tame vine
#

One message removed from a suspended account.

modest stag
#

ys

tame vine
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

modest stag
vestal tundra
broken larkBOT
#

studio** You are now Level 7! **studio

modest stag
#

huhh

#

what should i put

tame vine
#

One message removed from a suspended account.

#

One message removed from a suspended account.

vestal tundra
#

you need capital letters

tame vine
#

One message removed from a suspended account.

#

One message removed from a suspended account.

modest stag
#

oh

vestal tundra
#

yeah

#

i told you that 2 times

modest stag
#

mb

vestal tundra
#

dw

modest stag
#

my mind just wnet blank now that i have to code tweenservice

#

the worst part is i coded with it bazillion times :sob

tame vine
#

One message removed from a suspended account.

tame vine
modest stag
#

i relay older scripts

#

ijbol

tame vine
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

modest stag
#

thtd b bad

#

how do i tell the server script its the local player-

tame vine
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

modest stag
#

😭

tame vine
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

modest stag
#

how will that affct a srvr with othr ppl tho

tame vine
tame vine
#

One message removed from a suspended account.

#

One message removed from a suspended account.

modest stag
#

how t ospcify

tame vine
#

One message removed from a suspended account.

modest stag
#

to specify*

tame vine
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

modest stag
#

but

broken larkBOT
#

studio** You are now Level 3! **studio

modest stag
#

thts for spcific plyr

tame vine
#

One message removed from a suspended account.

modest stag
#

its supposed to be a silly intro cutscene 😭

tame vine
#

One message removed from a suspended account.

#

One message removed from a suspended account.

modest stag
#

wait

#

what if

tame vine
#

One message removed from a suspended account.

#

One message removed from a suspended account.

modest stag
#

tried it

#

didnt work

tame vine
#

One message removed from a suspended account.

modest stag
#

No idea

tame vine
#

One message removed from a suspended account.

#

One message removed from a suspended account.

modest stag
#

If i make a remove event that shoots the localplayer data thru a local script to the main script so the main script can shoot it back?

modest stag
tame vine