I want to spawn something on front on your head everytimes you press G
script: (Local Script located in Workspace):
local UIS = game:GetService("UserInputService")
local plr = game.Players.LocalPlayer
local wplr = game.Workspace:FindFirstChild(plr.Name)
UIS.InputEnded:Connect(function(input)
if input.KeyCode == Enum.KeyCode.G then
local Bad = game.Workspace.BadmintonThing:Clone()
Bad.Position = wplr.HumanoidRootPart.CFrame + Vector3.new(0, 20, 0)
end
end)
Here’s any more infos: