#my menu gui only works on one player and the other has the gui stuck to their screen

1 messages · Page 1 of 1 (latest)

slow storm
#

im making a main menu gui and when I test the game with my friend if he presses play on the gui then it stops working for me and continues to work for him and vice versa can anybody fix this btw this is the code
local player = game.Players.LocalPlayer
local cam = workspace.CurrentCamera
local starterCam = workspace:WaitForChild("playcam")

local playButton = script.Parent.playbutton
local main = script.Parent
repeat
cam.CameraType = Enum.CameraType.Scriptable
cam.CameraSubject = starterCam
cam.CFrame = starterCam.CFrame
until cam.CameraType == Enum.CameraType.Scriptable and cam.CameraSubject == starterCam and cam.CFrame == starterCam.CFrame

playButton.MouseButton1Click:Connect(function()
main.Enabled = false

cam.CameraType = Enum.CameraType.Custom

cam.CameraType = Enum.CameraType.Custom
cam.CameraSubject = player.Character

end)

native osprey
#

where is this script located

slow storm
#

oh

#

its located inside the gui

native osprey
#

where is the gui located

slow storm
#

starter gui

native osprey
#

its a localscript right?

slow storm
#

yes

#

for some reason it will only work on one player

native osprey
#

Yeah that's weird. It would make sense if you're both manipulating the same object. However if it's all local that shouldn't be an issue.

slow storm
#

so u dont know what it could be?

native osprey
#

put some prints in and see if the signals are even being picked up by your friend

slow storm
#

where do i put the

#

uhhh

#

the prints

#

like inside this script?

native osprey
#

i'd put one in the event

#

and one above the event

#

after the repeat

slow storm
#

oh ok

#

oh

harsh sandalBOT
#

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

slow storm
#

it works now

#

somehow it just didnt work that one time i tested it lol

#

thank you for helping