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

Confusing bugs with roblox studio that relate to my code. btw?

Asked by 4 years ago

So I have been using roblox studio normally, I start working on an information gui and out of nowhere internal scripts that I haven't made start saying things are missing and the weirdest thing, my scripts start saying playergui is missing, all of them! Then I check my player and its not there! What is happening? It appears to happen as soon as I use this script:

sleeptext = "bunch of random text"
script.Parent.Cancel.MouseButton1Click:Connect(function()
    script.Parent.Parent.Parent:Destroy()
end)
script.Parent.Sleep.MouseButton1Click:Connect(function()
    -- bug happens here
    script.Parent.ScrollingFrame.TextLabel.Text = sleeptext
end)

Here us what happens when the script breaks: 22:52:14.184 - BackgroundImage is not a valid member of Frame 22:52:14.185 - Stack Begin 22:52:14.185 - Script 'Players.Futuristic_Paladin.PlayerScripts.ChatScript.ChatMain.ChannelsTab', Line 212 - method AnimGuiObjects 22:52:14.186 - Script 'Players.Futuristic_Paladin.PlayerScripts.ChatScript.ChatMain.ChannelsTab', Line 262 - method Update 22:52:14.187 - Script 'Players.Futuristic_Paladin.PlayerScripts.ChatScript.ChatMain.ChannelsBar', Line 352 - method Update 22:52:14.187 - Script 'Players.Futuristic_Paladin.PlayerScripts.ChatScript.ChatMain.ChatWindow', Line 650 - method Update 22:52:14.188 - Script 'Players.Futuristic_Paladin.PlayerScripts.ChatScript.ChatMain', Line 187 22:52:14.188 - Stack End 22:52:19.808 - PlayerGui is not a valid member of Player 22:52:19.810 - Stack Begin 22:52:19.811 - Script 'Workspace.Futuristic_Paladin.LocalScript', Line 12 22:52:19.811 - Stack End

Sorry for any inexplicitness, I just really don't understand whats wrong and why its only just happened. I was using this exact script minutes ago to double-check if it worked and this just happens. I also restarted studio

1 answer

Log in to vote
0
Answered by
Nefarioum 162
4 years ago

I'll try give you a couple steps to follow which could help you fix the issue. Normally for me, if any of the core scripts begin freaking out I just re-install studio and it fixes it for me however I'll try giving you a couple things you could try:

1. Reinstalling Studio

Sometimes studio just stops working as a whole due some corruptions in the files and they can be fixed through just an install. I recommend using "Add or Remove Programs" in the Windows 10 search bar if you are using Windows 10. Uninstall the Studio Client and just install it again from ROBLOX by trying to edit a place.

2. Try making a new place and seeing if the issue persists when you test play it

If you happen to still have the issues, it means that the your studio is bugged and if you haven't tried 1, then do so, if you have then you'll need to try completely wipe any files inside of %appdata% and attempt a re-installation again. If you still have the issue persisting, it would mean your anti-virus is deleting something so check if you have any related notifications.

3. Your script is destroying PlayerGui

You haven't provided all of your script so it is hard to tell but in your 3rd line you are using Parent 3 times so there may be a possibility that you are destroying PlayerGui through it as you are running the Destroy() function after. This would explain all of the issues you are having with the chat not functioning as some of Chat dependencies lie in PlayerGui.

Hope I've helped and wish you the best of luck in fixing the issue :)

0
thanks I will try and fix thiis Futuristic_Paladin 19 — 4y
Ad

Answer this question