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

How to make a pad for a tycoon except for going onto it,you click to buy the building etc?

How would I make a pad that when I click it (on a tycoon) it buys the object?I do not want to the player stand on the pad to buy it,I want to the player click onto it.

Any help would be really appreciated!

Thank You GruDru888

1 answer

This wouldn't be the full thing, but a segment of what this particular script will look like:

local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local pad = game.Workspace.pad

Mouse.Button1Down:connect(function()
	local target = Mouse.Target
	if Mouse.Target.Name == pad.Name
		-- add what you want here
	end
end)

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