What do you want to achieve? Slowly change frame background transparency then FireServer() event
What is the issue? frame is not even visible when playtesting/playing
What solutions have you tried so far? i tried using the good old
frame.BackgroundTransparency = 0.35
wait()
But it wouldn’t work either.
local guicount = script:FindFirstChild("LamLantern")
guicount.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local player = script.Parent
local humanoid = player:WaitForChild("Humanoid")
local TweenService = game:GetService("TweenService")
local frame = guicount:WaitForChild("Frame")
local morph = game.ReplicatedStorage.Lammy
local Goal = {}
Goal.Transparency = 0.35
local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
zone.localPlayerEntered:Connect(function(player)
local morphed = player:FindFirstChild("Morphed")
if morphed == true then return end
if morphed == false then
local tween = TweenService:Create(frame, tweenInfo, Goal)
tween:Play()
tween.Completed:Wait()
wait(2)
morph:FireServer()
end
end)
The event fires the background frame doesn’t even appear (please note that the original bg transparency is 1 and i want it to slowly transition to 0.25)
You located guicount to PlayerGui if u want the frame first u need to locate the screengui then Frame PlayerGui.ScreenGui.Frame
local guicount = script:FindFirstChild("LamLantern")
guicount.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local frame = guicount:WaitForChild("Frame") --error you must locate first the screengui then frame.
local guicount = script:FindFirstChild("LamLantern")
guicount.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local player = script.Parent
local humanoid = player:WaitForChild("Humanoid")
local TweenService = game:GetService("TweenService")
local playergui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local morph = game.ReplicatedStorage.Lammy
local Goal = {}
Goal.BackgroundTransparency = 0.35
local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
zone.localPlayerEntered:Connect(function(player)
local morphed = player:FindFirstChild("Morphed")
if morphed == true then return end
if morphed == false then
local tween = TweenService:Create(playergui:WaitForChild("LamLantern").Frame, tweenInfo, Goal)
tween:Play()
tween.Completed:Wait()
wait(2)
morph:FireServer()
end
end)