These 2 scripts are meant to spawn the part on the mouse. But it isnt spawning correctly.
Server Script
script.Parent.LocalScript.Slash.OnServerEvent:Connect(function(plr,pos)
local inst = game.Lighting.Assets.E:Clone()
local ana = inst.Slash
ana.Parent = workspace
ana.Position = pos
local tweenservice = game:GetService('TweenService')
local goal = {}
goal.Transparency = 1
goal.Size = Vector3.new(15.46, 393.481, 10.296)
local ti = TweenInfo.new(0.75)
local yes = tweenservice:Create(ana,ti,goal)
yes:Play()
end)
Local Script
local p = game.Players.LocalPlayer
local deb = false
script.Parent.Activated:Connect(function()
local mouse = p:GetMouse()
if deb == false then
deb = true
script.Slash:FireServer(mouse.Hit.p)
wait(script.Parent.Cooldown.Value)
deb = false
end
end)
try using c frame instead? (Mouse.Hit) and change the server script to change the cframe instead of the position. It could also be something with your tweening.