|
| 20 Aug 2016 10:20 AM |
path of the LocalScript: game.StarterGui ------ UIS = game:GetService("UserInputService") local player = game.Players.LocalPlayer local W = script.Sound:Clone() W.Parent = player.Character.Head W.Name = "Whis" local WS = player.Character.Head:WaitForChild("Whis")
function WSDown(inputObject, gameProcessedEvent) if inputObject.KeyCode == Enum.KeyCode.C then if player.Name == "CiloFlaviusPullo" then WS:Play() end end end
function WSUp(inputObject, gameProcessedEvent) if inputObject.KeyCode == Enum.KeyCode.C then WS:Stop() end end
UIS.InputBegan:connect(WSDown) UIS.InputEnded:connect(WSUp) |
|
|
| Report Abuse |
|
| |
lokkut
|
  |
| Joined: 18 Mar 2009 |
| Total Posts: 1794 |
|
|
| 20 Aug 2016 10:38 AM |
It might be lagging behind when trying to get the Head.
Try Player.Character:WaitForChild("Head") |
|
|
| Report Abuse |
|