if game.workspace.Baseplate.Transparency = 0
add 0.1 <- The part where it adds .1 to the 0
end
if game.workspace.Baseplate.Transparency = 1.0 then
game.workspace.Baseplate.Transparency = 0
end
Wheeze...
Okay, let's start down with the basics.
local Workspace = game:GetService("Workspace")
while wait() do
while Workspace.Baseplate.Transparency < 1 do
Workspace.Baseplate.Transparency = Workspace.Baseplate.Transparency + 0.1
wait() end
while Workspace.Baseplate.Transparency => 1 do
Workspace.Baseplate.Transparency = 0
wait() end
end
Let's say you made a function called Add.
local function Add(Value, Number)
Value = Value + Number
end
while wait() do
while Workspace.Baseplate.Transparency < 1 do
Add(Workspace.Baseplate.Transparency, 0.1)
wait() end
while Workspace.Baseplate.Transparency => 1 do
Add(Workspace.Baseplate.Transparency, -1)
wait() end
end
** Anyways, done being rude, time for an actual answer.**
Okay, so you need to understand something called Conditional Statements, you probably learned these in Mathematics. (Unless you sleep in that class. Cough)
Conditional States are as followed:
(Greater Than) < (Less Than) = (Equal To (In Math... In Programming it's for setting a value or something.)) >= (Greater Than or Equal To) <= (Less Than or Equal To) == (Equal To for If Than Statements.) ~= (Not Equal To)
You also don't know how to call the Math stuff in rbx.lua. Which is fine! Programming takes practice, lemme show you the symbols:
(+) is Adding
(-) is Subtracting
(*) is Multiplying
(/) is Dividing
(%) is Dividing with a Remainder (Basically)
If you have any other questions. Just let me know. :P
1 comment
You missed a lot of the issues.