imgur.com/a/MWCEi ^^ location of the scripts

So my issue is that when I click "Yes" on the gui imgur.com/a/Wmsrv instead of it triggering the script it does nothing. I will post the scripts used.

This is the script located in textbuttonyes

function onButtonClicked()
	
local script = game.Players.LocalPlayer.PlayerScripts.drugscript

function onButtonClicked()
	
	script.Disabled = false
	
end
	
end

script.Parent.MouseButton1Down:connect(onButtonClicked)

this is the script located in starterplayerscripts

local camera = game.Workspace.CurrentCamera

game:GetService("RunService"):BindToRenderStep("Dank",Enum.RenderPriority.Last.Value,function()
	
local t = tick()		
local s = 0.1 + ((1 + math.sin(t))/2)*0.25
local c = 0.1 + ((1 + math.cos(t))/2)*0.25

	local x,y,z, xx,yx,zx, xy,yy,zy, xx,yz,zz = camera.CFrame:components()
	
	camera.CFrame = CFrame.new(x,y,z,
		 xx*s,yx*c,zx,
		 xy*s,yy*c,zy,
		 xx*s,yz*c,zz ) 
end)	


colorc=Instance.new("ColorCorrectionEffect",game.Lighting)

wait()

spawn(function()
	
   while wait() do
	
       colorc.Contrast=math.random(-1000,1000)
       colorc.Saturation=math.random()
       colorc.TintColor = Color3.new(math.random(), math.random(), math.random())

   end
end)

spawn(function()
	
   while wait() do
	
	
end
end)

The annoying part is I get no errors. Much appreciated.

7 comments

0

If you want to get a response faster, indent your code correctly.

0

haha thats funny, you've been harassing me on the discord every time i ask what do i change on my script to make it properly indented. instead of linking me the glossary which i don't understand you could tell me how to actually do it.

0

I wasn't harassing you, I was telling you to indent so your code is readable. I also explained how to do it, but you decided not to read it.

0

"DECIDED NOT TO READ IT" i have dyslexia and sending me a huge chunk of writing as a glossary telling me how to do something DOES NOT help me at all. it'd be great help if you told me what to edit in my script to have proper indentation.

0

I explained what to edit in your script to have proper indentation as well. I even made the rules as small as possible to work with your dyslexia.

0

you didn't though, oh well.

0

I did, oh well. That's why your question didn't get answers.