|
| 06 Apr 2015 12:12 PM |
The script is inserted into a player after they click a button
mouse = game.Players.LocalPlayer:GetMouse()
if mouse ~= nil then print("Mouse has been found") else print("Error") end
|
|
|
| Report Abuse |
|
|
|
| 06 Apr 2015 12:14 PM |
Try this. Put it in a local script inside the button
local player = game.Players.LocalPlayer local mouse = player:GetMouse()
if mouse ~= nil then print("Mouse has been found") else error("Error") end |
|
|
| Report Abuse |
|
|
| |
|
|
| 06 Apr 2015 12:18 PM |
| It works in studio. But not in Regular |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 06 Apr 2015 12:19 PM |
textbutton = TEXTBUTTONPATHGOESHERE
textbutton.MouseButton1Click:connect(function() mouse = game.Players.LocalPlayer:GetMouse() if mouse then return true else return false end end) |
|
|
| Report Abuse |
|
|
|
| 06 Apr 2015 12:21 PM |
The local script is inserted in the player if mouse ~= nil then print("Mouse has been found") h = Instance.new("Hint",game.Workspace) h.Text = "WORKS" else print("Error") end
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
PalomonCP
|
  |
| Joined: 06 Nov 2013 |
| Total Posts: 727 |
|
|
| 12 Apr 2015 10:52 AM |
| I actually tried to make a 5N at freddys cam the one used in the office. but it dont work |
|
|
| Report Abuse |
|
|
| |
|
|
| 12 Apr 2015 01:26 PM |
| It has to be a LocalScript, and it has to be placed into PlayerGui. |
|
|
| Report Abuse |
|
|