You can write your topic however you want, but you need to answer these questions:
To fix a little bug that turn my main menu into a fard machine
-
What is the issue? Include screenshots / videos if possible!
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub? Well, when i try to change something it breaks and the camera goes to the player instead of staying in menu, this is very specific and i didnt found anything in devforum about this.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local player = game.Players.LocalPlayer
local character = player.CharacterAdded
local mouse = player:GetMouse()
local camera = workspace.CurrentCamera
local death = game.ReplicatedFirst.DeathEffect
local defaultCframe = camera.CFrame
local view = 150
local blur = game.Lighting.Blur
local col = game.Lighting.ColorCorrection
local menuspawn = game.Workspace.SpawnLocation
blur.Size = 10
death.Disabled = true
function updateCamera()
camera.CFrame = game.Workspace.MenuCamera.CFrame
end
game:GetService("RunService").RenderStepped:Connect(updateCamera)
script.Parent.Frame.Play.MouseButton1Click:Connect(function()
wait(0.2)
game.Workspace.Boom.Playing = true
menuspawn:Destroy()
game.ServerStorage.spawnpoints.Parent = workspace -- The part that gives a error.
view = 150
blur.Size = 1
game.Workspace.DamagePart.Script.Disabled = false
script.Parent.Frame.Play.TextTransparency = 1
script.Parent.Frame.TextLabel.TextTransparency = 1
col.TintColor = Color3.fromRGB(0,0,0)
camera.CameraType = Enum.CameraType.Fixed
game.Workspace.MenuMusic:Stop()
wait(7)
col.TintColor = Color3.fromRGB(163, 158, 136)
game.ReplicatedFirst.DeathEffect.Disabled = false
script.Parent.Frame:Destroy()
script:Destroy()
end)
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
Sorry if the topic is a bit hard to read, its been some time since i last made one.