Need help for making an vehicle factory game with a scripts

Hi, devs! Today, I going to show you, I need some help with making a vehicle factory game with any scripts. So, I follow these issues below, because the game menu is malfunctioning.

Main Menu Camera is not rotating automatically

When I scripted normally with a main menu camera rotation, but is not working so, there is a script below for an example:

local part = script.Parent

local tweenService = game:GetService("TweenService")

local rotation = {}
rotation.CFrame = part.CFrame * CFrame.Angles(0, 360, 0)

tweenService:Create(part, TweenInfo.new(30, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, -1), rotation):Play()

The camera rotation with a part will result in a frozen background with a blurry post-processing effect. So, watch this video:

Show result malfunction

1 Like

The only thing I can see in the video that causes error is OnServerEvent can only be used on server-side and it’s seem like quite easy to understand.

You can learn more about remotes event connection (OnClientEvent) for local-script here : RemoteEvent | Documentation - Roblox Creator Hub

1 Like

No, the main menu rotation camera. Look at the script for my example.

1 Like

I can’t see nothing wrong we the script you provided. To be sure, I even tested it in roblox studio.

Could you send the part of the script that set the camera view on the part?

1 Like

Umm… I didn’t see your script in your video. Can you explain your script?

1 Like

so as the info you gave me, i can tell you that you used the onServerEvent in a Local Script who is **Client Side Script**

so you can use onClientEvent Instead if you want to make it Client-Sided.

Note: i Prefer when Doing an Main Menu That you use Server Script.

No, I tell camera rotation in main menu background.