|
| 29 Aug 2016 08:48 PM |
local mouse = player:GetMouse() local down = false
--[[function onKeyPress4(inputObject, gameProcessedEvent) if inputObject.KeyCode == Enum.KeyCode.D then end end
game:GetService("UserInputService").InputBegan:connect(onKeyPress4)]]--
mouse.Button1Down:connect(function() down = true --[[for i = 1,0,0.001 do print("going") weapon.Main.CFrame = weapon.Main.CFrame:lerp(weapon.Main.CFrame*CFrame.new(0,2,0),i) end]]-- end) --- error: attempt to call a nil value? Mouse and player are defined.
|
|
|
| Report Abuse |
|
|
| |
|
Real_Edgy
|
  |
| Joined: 23 Oct 2013 |
| Total Posts: 1212 |
|
|
| 29 Aug 2016 08:51 PM |
| i think it's trying to tell you not to call a nil value |
|
|
| Report Abuse |
|
|
| |
|
Real_Edgy
|
  |
| Joined: 23 Oct 2013 |
| Total Posts: 1212 |
|
|
| 29 Aug 2016 08:55 PM |
yes really
but actually i can't seem to find anything wrong, other than onKeyPress4 isn't defined, but that's already long-commented |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2016 08:58 PM |
you are using a function that does not exist
which means the variable representing the function (for example)
print(something)
--something would be nil since it has not been declared
something()
is the same as
nil() |
|
|
| Report Abuse |
|
|