I was making skill that summon orb, It works fine in studio but not in game
https://sofargames.gyazo.com/64de8a425dbfaf9afc49fd676b24c902 (studio)
https://sofargames.gyazo.com/ce663f5e3d4dba9d86b7bdb4c0377530 (in game)
I know the problem is from the module that i use to make this effect but I not sure why
Here’s my module script
local TS = game:GetService(“TweenService”)
local trans = 1
local module = {}
module.DarkEffect = function (eTorso)
local HitEffect = script.DarkEffect:WaitForChild(“HitWave”)
local HitParticle = script.DarkEffect:WaitForChild(“HitModuleParticle”)
local HitParticle2 = script.DarkEffect:WaitForChild(“Effects2”)
local HitBall = script.DarkEffect:WaitForChild(“HitBall”)local HiteffectBall = function(Pos)
local ClonedBall = HitEffect:Clone()
ClonedBall.Parent = workspace.SkillFX
ClonedBall.CFrame = Pos
ClonedBall.Color = Color3.fromRGB(18, 18, 18)
ClonedBall.CFrame = CFrame.new(ClonedBall.Position, eTorso.Position)
game.Debris:AddItem(ClonedBall,.4)local weld = Instance.new("WeldConstraint", ClonedBall) weld.Part1 = ClonedBall weld.Part0 = eTorso TS:Create(ClonedBall,TweenInfo.new(0.4,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),{CFrame = ClonedBall.CFrame + ClonedBall.CFrame.lookVector * -2,Transparency = trans,Size = Vector3.new(0.087, 0.08,0)}):Play()
end
local HitBallEffect = function(Pos)
local ClonedBall = HitBall:Clone()
ClonedBall.Parent = workspace.SkillFX
ClonedBall.CFrame = Pos
ClonedBall.Color = Color3.fromRGB(64, 0, 80)
ClonedBall.CFrame = CFrame.new(ClonedBall.Position, eTorso.Position)
game.Debris:AddItem(ClonedBall,.4)local weld = Instance.new("WeldConstraint", ClonedBall) weld.Part1 = ClonedBall weld.Part0 = eTorso TS:Create(ClonedBall,TweenInfo.new(0.4,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),{CFrame = ClonedBall.CFrame + ClonedBall.CFrame.lookVector * -.6,Transparency = trans,Size = Vector3.new(0.087, 0.08, 2.35)}):Play()
end
spawn(function()
for i = 1,6 do
HitBallEffect(eTorso.CFrame * CFrame.new(math.random(-1,1),math.random(-1,1),math.random(-1,1)))
HiteffectBall(eTorso.CFrame * CFrame.new(math.random(-1.3,1.3),math.random(-1.3,1.3),math.random(-1.3,1.3)))
end
end)end
thx
edit: the module is required from the client side