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

Workspace.EnergyGrenade.GrenadeHandler:43: invalid argument #3 (Instance expected, got Vector3)?

ok so i think i figured my last post out but in the process of doing that i got this error

Workspace.EnergyGrenade.GrenadeHandler:43: invalid argument #3 (Instance expected, got Vector3)

the section with line 43 is

	local explodeCoro = coroutine.wrap(function()
		wait(explodesIn)
		local explosion = game.Workspace.Models.GrenadeBoom:Clone()
		explosion.Parent = clone.Position --line 43
		explosion = clone
		clone.Explosion:Play()
		clone.Transparency = 1
		clone.Trail.Enabled = false
		wait(3)
		clone:Destroy()
	end)

1 answer

✓ Accepted answer

A Instance parent is not a Position value. Did you mean:

explosion.Parent = clone
explosion.Position = clone.Position

2 comments

0

Im not getting "Position is not a valid member of model"

0

wait i think i got it

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