#attempt to index nill 'CFrame' line 23

18 messages · Page 1 of 1 (latest)

regal blaze
#

.

#
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)```
regal blaze
#

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

echo knot
#

print for waveclone and check if it exists

#

within the localscript

regal blaze
regal blaze
#

but this

#

wait

#

it didnt get printed

wicked palm
#

that means tweengoal doesnt exist

regal blaze
#

hah

regal blaze