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 7 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
7 years ago

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

01local Player = game.Players.LocalPlayer
02local Mouse = Player:GetMouse()
03local pad = game.Workspace.pad
04 
05Mouse.Button1Down:connect(function()
06    local target = Mouse.Target
07    if Mouse.Target.Name == pad.Name
08        -- add what you want here
09    end
10end)
Ad