Hello this is really confusing it use to work for me now it doesn't? heres my attempt
t = script.Parent.Touched:Connect(function() t:Disconnect() local g = script.gui:Clone() g.Parent = game.Players:GetPlayerFromCharacter(hit.Parent).PlayerGui wait() for i = 1,50 do g.frame.BackgroundTransparency = g.frame.BackgroundTransparency - 0.02 wait(0.01) end end)
This clone's into the players playergui but as soon as it tries to change the frame it has this error
f is not a valid member of ScreenGui Stack Begin Script 'Workspace.touchy.hit', Line 6 Stack End
My guess is the frame is not loading fast enough but it still doesn't make sense still it's a clone it's not loading anything ;/
Hello, fistter1
I've made this script for you
I hope this works:
t = script.Parent.Touched:Connect(function() t:Disconnect() local g = script.gui:Clone() g.Parent = game.Players:GetPlayerFromCharacter(hit.Parent).PlayerGui wait() for i = 1,50 do g.Frame.BackgroundTransparency = g.Frame.BackgroundTransparency - 0.02 wait(0.01) end end)
I think it was not working because "Frame" is set to "frame".