Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

attempt to call a table value?

Asked by
3wdo 198
4 years ago

so in my last question i said this was my last part of the titan shifting thing im doing. so there were 2 peces of lightings that i did and the last one was supposed to get bigger and bigger. and the loop will break after it gets deleted(idk if the loop will stop after it is deleted so if you could also fix that it would be nice)

game.ReplicatedStorage.titanshifted.OnServerEvent:Connect(function(player)
    wait(3)
    local shift1 = game.ReplicatedStorage.shift1:Clone()
    local shift2 = game.ReplicatedStorage.shift2:Clone()
    shift1.Parent = game.Workspace:FindFirstChild(player.name).HumanoidRootPart
    shift1.Position = shift1.Parent.Position
    wait(1)
    game.Workspace:FindFirstChild(player.name).HumanoidRootPart:WaitForChild("shift1"):Remove()
    shift2.Parent = game.Workspace:FindFirstChild(player.name).HumanoidRootPart
    shift2.Position = shift2.Parent.Position
    wait(3)
    game.Workspace:FindFirstChild(player.name).HumanoidRootPart:WaitForChild("shift2"):Remove()
end)
game.ReplicatedStorage.titanshifted.OnServerEvent:Connect(function(player)
        wait(1)
        while true do
            wait(0.2)
            game.Workspace:FindFirstChild(player.name).HumanoidRootPart:WaitForChild("shift2").Size = game.Workspace:FindFirstChild(player.name).HumanoidRootPart:WaitForChild("shift2") + Vector3(1,1,1)
            if 

    end
end)
0
line 18 is my problem 3wdo 198 — 4y
0
You didn't use .Size killerbrenden 1537 — 4y
0
game.Workspace:FindFirstChild(player.name).HumanoidRootPart:WaitForChild("shift2").Size = game.Workspace:FindFirstChild(player.name).HumanoidRootPart:WaitForChild("shift2").Size + Vector3(1,1,1) killerbrenden 1537 — 4y

1 answer

Log in to vote
0
Answered by
Gingerely 245 Moderation Voter
4 years ago

At line 18, you did vector3 instead it should be

Vector3.new(1,1,1)

0
bad argument #1 (Vector3 expected, got Object) 3wdo 198 — 4y
0
wdym got object Gingerely 245 — 4y
0
what did you put in the brackets Gingerely 245 — 4y
0
(1,1,1) 3wdo 198 — 4y
View all comments (3 more)
0
also why is there an extra if? Gingerely 245 — 4y
0
i removed that but forgot to edit the question but still wont work 3wdo 198 — 4y
0
and player.name, n should be capital `name` Gingerely 245 — 4y
Ad

Answer this question