Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Story gets loaded twice resulting in missing controls #205

Open
nakoyasha opened this issue Apr 24, 2023 · 0 comments
Open

Story gets loaded twice resulting in missing controls #205

nakoyasha opened this issue Apr 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@nakoyasha
Copy link

nakoyasha commented Apr 24, 2023

Describe the bug

When loading a story file, the controls appear for a split second before disappearing:

ezgif-2-0f09c222b2.mp4

Output shows that the story gets loaded twice; once with the proper controls, and the second with all of them being empty strings.
image

Expected behavior

I expect the story file to get loaded once; and with proper controls.

Steps to reproduce

Open this story file:

return {
	summary = "Test",
	controls = {
		Blood = 500,
		XP = 500,
		Victim = "OnlyTwentyCharacters",
	},
	story = function(Preview, Props)
		print(Props.controls)
		local Root = Instance.new("TextLabel")
		Root.Size = UDim2.fromScale(1, 1)
		Root.Parent = Preview
		Root.Text = `B${Props.controls.Blood} XP{Props.controls.XP} - {Props.controls.Victim}`

		return function()
			Root:Destroy()
		end
	end,
}
@nakoyasha nakoyasha added the bug Something isn't working label Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant