Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Zinput = Instance.new("RemoteEvent", owner)
- NLS([[
- -- We must get the UserInputService before we can use it
- local UserInputService = game:GetService("UserInputService")
- -- A sample function providing one usage of InputBegan
- local function onInputBegan(input, gameProcessed)
- if input.KeyCode== Enum.KeyCode.Z then
- print("The left mouse button has been pressed!")
- Zinput:FireServer()
- end
- end
- UserInputService.InputBegan:Connect(onInputBegan)
- ]], owner.Backpack)
- local function task(owner, input)
- print(owner.Name)
- end
- Zinput.OnServerEvent:Connect(task)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement