Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

attempt to call a table value?

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)

3 comments

0

line 18 is my problem

0

You didn't use .Size

0

game.Workspace:FindFirstChild(player.name).HumanoidRootPart:WaitForChild("shift2").Size = game.Workspace:FindFirstChild(player.name).HumanoidRootPart:WaitForChild("shift2").Size + Vector3(1,1,1)

1 answer

At line 18, you did vector3 instead it should be

Vector3.new(1,1,1)

7 comments

0

bad argument #1 (Vector3 expected, got Object)

0

wdym got object

0

what did you put in the brackets

0

(1,1,1)

0

also why is there an extra if?

0

i removed that but forgot to edit the question but still wont work

0

and player.name, n should be capital name

This discussion is preserved as it was. New answers, comments, and votes are closed.