RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"when f is pressed fire function PlayingJazz in replicated storage"
-- local script local player = game.Players.LocalPlayer local replicatedStorage = game:GetService("ReplicatedStorage") player.CharacterAdded:Connect(function(character) local humanoid = character:WaitForChild("Humanoid") humanoid.KeyPressed:Connect(function(key) if key == "f" then replicatedStorage:WaitForChild("PlayingJazz"):Fire() end end) end)