Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Tycoon script not working No error Help?

function onTouch(hit)
	local name = hit.Parent.Name
    local plr = hit.Parent:FindFirstChild("Humanoid")
     if plr then
	local check1 = game.Players:GetPlayerFromCharacter(hit.Parent)
	  if check1 then
		local check2 = check1:WaitForChild("leaderstats")
		  if check2 then
			local check3 = check2:WaitForChild("Owner")
			if check3 == true then
				local m = Instance.new("Message",game.Workspace)
				m.Text = "Player"..name
				wait(7)
				m:Destroy()
				end
			  if check3 then
				  check3.Value = true
				end
	 	    end
	    end
    end
end
script.Parent.Touched:connect(onTouch)
wait(1)

I want it to display a message if that person already owns a tycoon please help?

1 answer

I figured it out it was that check3 was not its value so check3.Value is the proper thing

This discussion is preserved as it was. New answers, comments, and votes are closed.