I am trying to follow the top down action tutorial on the roblox wiki but it isnt working?
Ok, so I'm trying to learn how to code by following tutorials on the roblox wiki but I am running into some problems. here is the link to the page http://wiki.roblox.com/index.php?title=Top_Down_Action/Dialog
when I run my game I get this error
12:17:36.529 - DialogGui is not a valid member of ScreenGui
here is my code
01 | local animationSpeedShow = . 5 |
02 | local animationSpeedHide = . 5 |
03 | local positionShow = UDim 2. new( 0.1 , 0 , 0 , 0 ) |
04 | local positionHide = UDim 2. new( 0.1 , 0 , - 0.2 , 0 ) |
06 | local player = game.Players.LocalPlayer |
07 | local playerGui = game.StarterGui.DialogGui |
08 | local dialogFrame = playerGui.DialogGui.DialogFrame |
09 | local showDialog = game.ReplicatedStorage.ShowDialog |
11 | playerGui:SetTopbarTransparency( 0 ) |
13 | local function onShowDialog(thumbnail, text, duration) |
14 | local thumbnailPicture = dialogFrame:FindFirstChild(thumbnail) |
15 | thumbnailPicture.Visible = true |
16 | dialogFrame.TextLabel.Text = text |
17 | dialogFrame:TweenPosition(positionShow, Enum.EasingDirection.Out, Enum.EasingStyle.Quint, animationSpeedShow) |
19 | dialogFrame:TweenPosition(positionHide, Enum.EasingDirection.Out, Enum.EasingStyle.Quint, animationSpeedHide) |
20 | wait(animationSpeedHide) |
21 | thumbnailPicture.Visible = false |
24 | showDialog.OnClientEvent:connect(onShowDialog) |