So im currently scripting a menu gui. I have a camera shake script on workspace that is "disabled = false" So it plays. The only thing thoe is that i want it to be disabled when you hit play so the camera doesn't shake the whole time, just in the menu. Right now i have a mousebutton1click function, that has some code in it. Does somebody know how to disable a script in workspace with a localscript in a textbutton in startergui??
at the bottom of the script is the lines where i have tried disabling the script...
Here is the script so far:
-- Locals --
local Camera = game.Workspace.CurrentCamera
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
-- Main --
script.Parent.MouseButton1Click:Connect(function()
game.Workspace.Glitch.Playing = true
wait(4)
game.Workspace.MenuSound.Playing = false
game.Workspace.CitySound.Playing = true
Camera.CameraType = Enum.CameraType.Custom
Camera.CameraSubject = Humanoid
script.Parent.Visible = false
end)
script.Parent.MouseButton1Click:Connect(function()
wait(4)
game.Workspace.ScreenShake.Disabled = true
end)

1 comment
Doesn't work...