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

It says there's an unexpected unicode character, but I couldn't find any?

I'm making an attack but at line 12 It says there's an unicode character which I didn't understand which one.

local RS = game:GetService("ReplicatedStorage")
local debounce = false

RS.DragonBlast.OnServerEvent:Connect(function(plr)
	if debounce == false then
		debounce = true
		local char = plr.Character
		local head = RS.Stuff.DragonBlastHead:Clone()
		local eyes = RS.Stuff.DragonBlastEyes:Clone()
		local jaws = RS.Stuff.DragonBlastJaws:Clone()
		local blast = RS.Stuff.DragonBlast:Clone()
		head.CFrame = char.UpperTorso.CFrame * CFrame.new(0,202,0)
		jaws.CFrame = char.UpperTorso.CFrame * CFrame.new(3.446,443.555,25.875)
		eyes.CFrame = char.UpperTorso.CFrame * CFrame.new(3.532,448.246,10.67)
		blast.CFrame = char.UpperTorso.CFrame * CFrame.new(3.371,452.613,15.928)
		head.Parent = workspace
		eyes.Parent = workspace
		jaws.Parent = workspace
		char.UpperTorso.Anchored = true
		wait(0.4)
		blast.Parent = workspace
		local light = Instance.new("PointLight", char.UpperTorso)
		light.Brightness = 4
		light.Color = Color3.fromRGB(0,255,255)
		light.Range = 60
		wait(4)
		blast:Destroy()
		char.UpperTorso.Anchored = false
		wait(0.4)
		head:Destroy()
		eyes:Destroy()
		jaws:Destroy()
		wait(10)
		debounce = false
	end
end)

1 comment

0

wait there's "?" I can't see that in the script.

1 answer

✓ Accepted answer

First let's put your code in a proper code block!

local RS = game:GetService("ReplicatedStorage") 
local debounce = false

RS.DragonBlast.OnServerEvent:Connect(function(plr) 
	if debounce == false then 
		debounce = true 
		local char = plr.Character 
		local head = RS.Stuff.DragonBlastHead:Clone() 
		local eyes = RS.Stuff.DragonBlastEyes:Clone() 
		local jaws = RS.Stuff.DragonBlastJaws:Clone() 
		local blast = RS.Stuff.DragonBlast:Clone() 

		head.CFrame = char.UpperTorso.CFrame * CFrame.new(0?,202?,0) 
		jaws.CFrame = char.UpperTorso.CFrame * CFrame.new(3.446,443.555,25.875)
		eyes.CFrame = char.UpperTorso.CFrame * CFrame.new(3.532,448.246,10.67) 
		blast.CFrame = char.UpperTorso.CFrame * CFrame.new(3.371?,452.613,15.928)
 
		head.Parent = workspace 
		eyes.Parent = workspace 
		jaws.Parent = workspace 
		char.UpperTorso.Anchored = true 
		wait(0.4) 

		blast.Parent = workspace 

		local light = Instance.new("PointLight", char.UpperTorso)
		light.Brightness = 4 
		light.Color = Color3.fromRGB(0,255,255) 
		light.Range = 60 wait(4) blast:Destroy() 

		char.UpperTorso.Anchored = false 
		wait(0.4) 

		head:Destroy() 
		eyes:Destroy() 
		jaws:Destroy() 

		wait(10) 
		debounce = false 
	end 
end)

If you look at line 12, there are "?"s in the CFrame.new()

head.CFrame = char.UpperTorso.CFrame * CFrame.new(0?,202?,0) 

Remove those and that should solve that issue!

2 comments

0

Thanks those were viruses I realized later, in studio they are invisible. I rewrote and it got fixed

0

it might be a new virus look out for that

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