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
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
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.