So im making my module script fire a bindable event to a server script here. but it isnt executing. Module script code:
while true do
wait()
local bomb = repStorage.Items.Models.Bomb:Clone()
bomb.Parent = workspace
local x = workspace.Map1.Ground.Size.X/2
local z = workspace.Map1.Ground.Size.Z/2
bomb.Position = bomb.Position + Vector3.new(math.random(-x, x), 10, math.random(-z, z))
bomb.Anchored = false
bomb.spawn:Fire()
wait(9999) -- Im only spawning 1 bomb right now for testing purposes this will be changed later dont worry
end
Server script:
local bomb = script.Parent
local spawnEvent = script.Parent.spawn
spawnEvent.Event:Connect(function()
print("Spawned")
end)
Both module script and server script are in repStorage (cause bomb is being cloned) Any idea?