|
| 21 Aug 2017 11:45 AM |
How exactly do I make this?
I'm REALLY new to scripting and i'm just trying to make a really basic script but I can't seem to figure this out |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2017 11:48 AM |
| Try script.Parent.Parent.Target.ClickMousePlayer |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2017 12:17 PM |
hm a button for team change qui?
I Hate Human Verfication |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2017 12:35 PM |
try:
local plr = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function() plr.TeamColor = BrickColor.new("Your Team") plr:LoadCharacter() end)
SwagMasterSteff |
|
|
| Report Abuse |
|
|
Vxrtual
|
  |
| Joined: 18 Apr 2015 |
| Total Posts: 26 |
|
|
| 21 Aug 2017 01:23 PM |
Wait... so you want a button that makes a script enabled? k...
Try this:
(put this script inside the button)
local clickdetector = Instance.new("ClickDetector")
clickdetector.Parent = game.Workspace.(your button name)
function enable() (location of script ex. game.ServerScriptStorage.Script).Disabled = false end
clickdetector.MouseClick:connect(enable)
Is this what you meant? Or did u mean when u click your mouse button it activates a script? |
|
|
| Report Abuse |
|
|