I'm trying to make a tool where when you activate it, it should shoot a projectile and then if that projectile hits a player it will explode and damage the player. It is still wip but for some reason the part isn't spawning like how I wanted to in the script, help!!
Local Script:
local Tool = script.Parent.Parent.GhostDash
Tool.Activated:Connect(function()
script.Parent.RemoteEvent:FireServer()
end)
Script (main):
local combatModule = require(game.ReplicatedStorage.Effects)
local moveoneenabled = true
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://6736788633"
script.Parent.RemoteEvent.OnServerEvent:Connect(function(player)
print("beans")
local grenade = Instance.new("Part")
grenade.Shape = Enum.PartType.Ball
grenade.Position = player.Character.HumanoidRootPart.Position
grenade.CanCollide = false
grenade.Anchored = true
grenade.Parent = game.Workspace
end)
I don't seem to be getting any errors, and the part is not appearing.. bit of help? :)

1 comment
does it print beans?