it wont set the transparency for neither server or client
local TweenService = game:GetService("TweenService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Remotes = ReplicatedStorage.Remotes
local Assets = ReplicatedStorage.Assets
local PurchaseParticle = Assets.PurchaseParticle
Remotes.TycoonRemotes.Animate.OnClientEvent:Connect(function(build, pad)
local ogColor = build.Color
local ogMaterial = build.Material
local ogSize = build.Size
local ogTrans = build.Transparency
build.Color = Color3.new(0.776471, 0.776471, 0.776471)
build.Material = Enum.Material.Neon
Remotes.TycoonRemotes.Animate:FireServer(build.Parent.Parent.Parent)
local tweenInfo = TweenInfo.new(0.6, Enum.EasingStyle.Sine)
local tweenProps = {}
tweenProps.Transparency = build.Transparency
tweenProps.Size = ogSize + Vector3.new(1, 1, 1)
local newParticle = PurchaseParticle:Clone()
newParticle.Parent = pad
newParticle:Emit(25)
local tween = TweenService:Create(build, tweenInfo, tweenProps)
tween:Play()
tween.Completed:Wait()
local tweenBack = TweenService:Create(build, tweenInfo, {Size = ogSize}):Play()
build.Color = ogColor
build.Material = ogMaterial
build.Transparency = ogTrans
print(build.Transparency)
newParticle:Destroy()
pad:Destroy()
end)
I haven’t tried to implement the transparency for the server yet