Tycoon Won't Claim


When I test the game and run the script,
My player doesn’t claim the tycoon. I just go through it. I’ve looked at every name to make sure there’s no incorrect capitalization or misspelling. I’ve redone the script, and I can’t find what’s wrong with it. This is a simple script I’m using to test before I actually get going on my game furthermore.
Can someone please tell me what’s wrong with it?
(sorry I don’t have video. recorder is broken rn)

Is Values.OwnerValue an ObjectValue?

It is an ObjectValue. Should it be changed to something else? I’m just going based off a tutorial while I’m still learning more about coding in Roblox.

When you set the text of the SurfaceGui, the text should be this:

MainItems.OwnerDoor.MainDoor.SurfaceGui.TextLabel.Text = Values.OwnerValue.Value.Name .. " Tycoon"

Because OwnerValue is an ObjectValue, you need to get the name. Values.OwnerValue references to an Object, not a string.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.