Attempt to call a Tweeninfo value

I’m trying to make a fireball and I keep getting this error
Attempt to call a tweenInfo value
Here is the script

local tweenservice = game:GetService("TweenService")
script.Parent.OnServerEvent:Connect(function(plr)
	local Ofireball = game.ReplicatedStorage.OrangeFireball:Clone()
	
	Ofireball.Parent = workspace
	game.Debris:AddItem(Ofireball,3)
	Ofireball.CFrame = plr.Character.HumanoidRootPart.CFrame + plr.Character.HumanoidRootPart.CFrame.lookVector * 8
	tweenservice:Create(Ofireball,TweenInfo.new(1,3,0,0){CFrame = plr.Character.HumanoidRootPart.CFrame +
		plr.Character.HumanoidRootPart.CFrame.lookVector * 70,Transparency = 1}, Enum.EasingStyle.Quint,Enum.EasingDirection.Out):Play()
	
	local alreadytouched = false
	
	Ofireball.Touch:Connect(function(hit)
		if alreadytouched == true then return end
		if hit.Parent.Name  == plr.Name then return end
		if hit.Parent:FindFirstChild("Humanoid") then
			hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 35
			for i = 1,#hit.Parent:GetChildren() do
				if hit.Parent:GetChildren()[i]:IsA("Part") or hit.Parent:GetChildren()[i]:IsA("MeshPart") then
					
					
				end
			end
			for i = 1,6 do
				hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 3
				wait(1)
			end
		end
	end)
	wait(2.3)
	alreadytouched = true
end)

Okay, I don’t think TweenInfo works with “TweenInfo.new(1,3,0,0)”. Tween info takes up to three numbers, which are Time, DelayTime, and repeatCount.

Also, you need a comma here:

TweenInfo.new(1,3,0,0){CFrame

to

TweenInfo.new(1,3,0,0),{CFrame

It’s Touched , not Touch . Roblox has a lot of thing you need to spell and capitalize correctly, Touch does not exist. Also, make sure CanTouch is on for the MeshPart.

1 Like

Now i’m getting the error Touch is not a valid member of MeshPart
How could I fix this?

Thanks, sometimes I make tiny mistakes lol