Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

PlayerGui is not a valid Member of DataModel?

Asked by
5y5sy 0
3 years ago

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.

0
what line is the error at? JesseSong 3916 — 3y
0
what line is the error at? JesseSong 3916 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

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
0
No its not working, it did give me an error: Players.5y5sy.PlayerGui.Intro.MainFrame.LocalScript:9: attempt to call a RBXScriptSignal value 5y5sy 0 — 3y
0
There is a problem with game.ReplicatedStorage.IntroEvent.OnClientEvent() 5y5sy 0 — 3y
Ad

Answer this question