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

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

Asked by 6 years ago

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

Closed as Not Constructive by lukeb50, Programical, Vulkarin, and cabbler

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by
tantec 305 Moderation Voter
6 years ago

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)
Ad