So I want to make a basketball game that has like E to shoot and idk how to do that or make a shot meter so I don’t want you guys to do it for me I want you to tell me what to do and I can finish this game.
✓ ANSWER ACCEPTED
How do I make a basketball shooting meter???
1 answer
✓ Accepted answer
first add a local script in starterpack and write this
local UIS = game:GetService("UserInputService")
local Mouse = game.Players.LocalPlayer:GetMouse()
UIS.InputBegan:Connect(function(k,p)
if p then return end
if k.KeyCode == Enum.KeyCode.E then
if game.Players.LocalPlayer.Character:FindFirstChild("Basketballnamehere") then
game.ReplicatedStorage.RemoteEvent:FireServer(Mouse.Hit.Position)
end
end
end)
then add a remote event to replicated storage then add a script to serverscriptservice and write
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(Player, Mouse)
local part = Instance.new("Part")
part.Parent = workspace
part.Size = Vector3.new(3,3,3)
part.Position = Player.Character.RightHand.Position
part.Velocity = Mouse
end)
i havent tested it tho it will maybe work ill test it right after
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
press view source
Thanks!