Hi, I’m trying to make a script where when a user lands on a specific randomized number (which in this case is 14 inside the script), it would crit their sword, dealing more damage. However, the problem is that there a line where it pulls out the error “Unable to assign property Color. ColorSequence expected, got Color3”.
Script:
elseif rand == 14 then
handle.BrickColor = BrickColor.new("Maroon")
text.TextColor3 = Color3.fromRGB(117, 0, 0)
text.Text = "High damaging sword!"
script.Parent.critapplied:Play()
local sword = plr.Backpack:FindFirstChild("Sword")
sword.Hitbox.high.Value = true
sword.Hitbox.critsound:Play()
sword.Blade.critparticles.Enabled = true
sword.Blade.Trail.Color = Color3.fromRGB(170,0,0) --error producing
sword.Blade.Mesh.TextureId = "http://www.roblox.com/asset/?id=5614579544"
sword.Blade.Mesh.VertexColor = Vector3.new(0.75, 0, 0)
wait(1)
script.Parent.critapplied:Stop()
wait(2)
activated = true
handle.BrickColor = BrickColor.new("New Yeller")
text.TextColor3 = Color3.fromRGB(255, 255, 0)
text.Text = "Test your luck!"
I’v tried other solutions but so far doesn’t fix it. I’v also checked other pages but that didn’t help either. Why is that happening?
If you need clarification, ask me.