Hello, I am getting this error:
r is not a vaild member of Frame "Players.funfoxrr.PlayerGui.ScreenGui.Frame"
Line 6
Even though my script looks like this:
script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.RemoteEvents.Server.ReloadLevel:FireServer({
["Size"] = tonumber(script.Parent.Parent.gridSize.TextBox.Text),
["Experimental"] = script.Parent.Parent.useExperimental.Value.Value
})
script.Parent.Parent.Parent.Parent.Realoading.Visible = true --THIS LINE CAUSES ERROR
script.Parent.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
end)
Here is my ScreenGui:
This only happens on the Roblox Client.
The highlighted script is giving me the error.
All help is appreciated!