Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make the Frame GUI to switch different colors randomly like fast?


	local bloxyColaId = 372051683 -- Put the "ID" of you're "Item" that you want to sell. 
	local player = game.Players.LocalPlayer

	function onClick() 
	Game:GetService("MarketplaceService"):PromptPurchase(player, bloxyColaId) 
	end

	script.Parent.MouseButton1Click:connect(onClick)
end


while true do
	wait(.1)
	script.Parent.BorderColor3 = Color3.new(85, 0, 127)
	wait(.1)
	script.Parent.BorderColor3 = Color3.new(0, 85, 255)
	wait(.1)
	script.Parent.BorderColor3 = Color3.new(0, 170, 0)
	wait(.1)
	script.Parent.BorderColor3 = Color3.new(255, 255, 0)
	wait(.1)
	script.Parent.BorderColor3 = Color3.new(255, 85, 0)
	wait(.1)
	script.Parent.BorderColor3 = Color3.new(255, 0, 0)
end

Is thier anything wrong?

http://prntscr.com/a8l69h

4 comments

0

Local why?

0

Ik there should not be a "end" on line 9,

0

Looks like this isn't the whole script... Because of line 9 there must be more on top. However, if this is the whole script. PreyStar's right.

0

Can you tell me the correct why of making this script work ;c

2 answers

Is this script in the LocalScript or ?

2 comments

0

Ik there should not be a "end" on line 9,

0

Can you help me? ;c

This discussion is preserved as it was. New answers, comments, and votes are closed.