#attempt to index nill 'CFrame' line 23
18 messages · Page 1 of 1 (latest)
local remote = script.Parent:WaitForChild("detroitremote")
local tool = script.Parent
local cooldown = false
local tween = game:GetService("TweenService")
tool.Activated:Connect(function()
print("detroit smash")
if cooldown == false then
cooldown = true
remote:FireServer()
task.wait(2)
cooldown = false
end
end)
remote.OnClientEvent:Connect(function(plr,waveclone)
if plr then
local tweeninfo = TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
local tweengoal = {}
tweengoal.CFrame = waveclone.CFrame * CFrame.new(0,0,-6) * CFrame.Angles(0,0,0)
tweengoal.Transparency = 1
print("Transparency")
local tweenplay = tween:Create(waveclone,tweeninfo,tweengoal)
tweenplay:Play()
end
end)```
line 23 at here
remote come from
remote.OnServerEvent:Connect(function(player)
local waveclone = game:GetService("ServerStorage"):FindFirstChild("Detroit").Wave:Clone()
waveclone.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(1.5,1,-6)
waveclone.Parent = workspace
remote:FireAllClients(player,waveclone)
end)```
help pls
problem
the one here got print
but this
wait
it didnt get printed
that means tweengoal doesnt exist
hah
So how should i make tween goal exist