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

How to change transparency of CFrames?

I can't change the transparency of my CFrames, I have seen other people do it so sorry for my amateur attempt at this as I'm really struggling

local Baseplate = game.Workspace.Baseplate
while true do
	Baseplate.CFrame.Transparency = 0.1
	wait(0.1)
	Baseplate.CFrame.Transparency = 0.2
	wait(0.1)
	Baseplate.CFrame.Transparency = 0.3
	wait(0.1)
	Baseplate.CFrame.Transparency = 0.4
	wait(0.1)
	Baseplate.CFrame.Transparency = 0.5
	wait(0.1)
	Baseplate.CFrame.Transparency = 0.6
	wait(0.1)
	Baseplate.CFrame.Transparency = 0.7
	wait(0.1)
	Baseplate.CFrame.Transparency = 0.8
	wait(0.1)
	Baseplate.CFrame.Transparency = 0.9
	wait(0.1)
	Baseplate.CFrame.Transparency = 1
	wait(0.1)
	Baseplate.CFrame.Transparency = 0.9
	wait(0.1)
	Baseplate.CFrame.Transparency = 0.8
	wait(0.1)
	Baseplate.CFrame.Transparency = 0.7
	wait(0.1)
	Baseplate.CFrame.Transparency = 0.6
	wait(0.1)
	Baseplate.CFrame.Transparency = 0.5
	wait(0.1)
	Baseplate.CFrame.Transparency = 0.4
	wait(0.1)
	Baseplate.CFrame.Transparency = 0.3
	wait(0.1)
	Baseplate.CFrame.Transparency = 0.2
	wait(0.1)
	Baseplate.CFrame.Transparency = 0.1
	wait(0.1)
	Baseplate.CFrame.Transparency = 0
end

1 comment

0

Setting a CFrame's transparency? CFrame doesn't have a 'Transparency' property

3 answers

CFrame doesn't have a transparency. Bricks do. If you want to change the transparency of a brick, you can use this:

local part = workspace.Baseplate
local tweenLength  = 1 --how long the 'animation' will take
local info = TweenInfo.new(tweenLength) 
while game["Run Service"].Heartbeat:Wait() do
	game.TweenService:Create(part, info, {Transparency = 1}):Play()
	wait(tweenLength)
	game.TweenService:Create(part, info, {Transparency = 0}):Play()
	wait(tweenLength)
end

2 comments

0

omg im talking about cframe transparency you not listen!!!

0

CFrame. Doesn't. Have. Transparency. I've clearly stated that. You're the one not listening. And if you don't want to use my code. That's fine with me, but don't go blame me for 'not listening' because you want something that doesn't exist.

CFrame doesn't have a Transparency property. If you wanted to change the transparency of the baseplate you could just make a simple for loop.

local Baseplate = game.Workspace.Baseplate

--// Fade out loop
for i = 1, 10 do
	Baseplate.Transparency = i/10
	wait()
end

Fact is: You cannot change a CFrame value.

TheCFrameproperty does not have a Transparency component, the proper way would be to create a for loop, and change the BRICK's Transparency property, which is valid in this case.

For example.

for i = 0,1,0.01 do -- The first number is the "start", second is "end", and third is the increment, or how much you're increasing/decreasing, in this case, increasing.
workspace.Baseplate.Transparency = i
wait(0.01)
end

This should gradually increase your baseplate's Transparency property.

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