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

PlayerGui is not a valid Member of DataModel?

Script:

wait(5)

local Player = game.Players.LocalPlayer
local PlayerGui = Player:WaitForChild('PlayerGui')




local Text = PlayerGui.Intro.MainFrame.Text1

local Symbol = PlayerGui.Intro.MainFrame.IntroImage

local Sound = workspace.IntroSound

Sound:Play()

Text.TextTransparency = 0.9
Text.TextTransparency = 0.8
Text.TextTransparency = 0.7
Text.TextTransparency = 0.6
Text.TextTransparency = 0.5
Text.TextTransparency = 0.4
Text.TextTransparency = 0.3
Text.TextTransparency = 0.2
Text.TextTransparency = 0.1
Text.TextTransparency = 0

wait(5)

Symbol.ImageTransparency = 0.9
Symbol.ImageTransparency = 0.8
Symbol.ImageTransparency = 0.7
Symbol.ImageTransparency = 0.6
Symbol.ImageTransparency = 0.5
Symbol.ImageTransparency = 0.4
Symbol.ImageTransparency = 0.3
Symbol.ImageTransparency = 0.2
Symbol.ImageTransparency = 0.1
Symbol.ImageTransparency = 0

This is not a copy of a already existing question, this one is about with guis.

And if you asking, im using this script in LocalScript.

2 comments

0

what line is the error at?

0

what line is the error at?

1 answer

Well the answer is clear. It is showing the datamodel problem because you are probably running the game and not playing it.Also you should use game.Workspace, the other is deprecated. Incase its still not running a easy way is to do a client fire for example Server script:

game.Players.PlayerAdded:Connect(function(plr)
game.ReplicatedStorage.(EXAMPLEINTROEVENT):FireClient(plr)
end)

and in the local script just add this to the start of ur script instead of (wait) 5)

game.ReplicatedStorage.(EXAMPLEINTROEVENT).OnClientEvent()
-- and insert the rest here. just remove teh wait

2 comments

0

No its not working, it did give me an error: Players.5y5sy.PlayerGui.Intro.MainFrame.LocalScript:9: attempt to call a RBXScriptSignal value

0

There is a problem with game.ReplicatedStorage.IntroEvent.OnClientEvent()

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