Here is the Code All it does is gets the username you typed in and applies the code to that player, works fine in studio.
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
function click()
function find()
for i,v in pairs(game.Players:GetPlayers()) do
if string.lower(string.sub(v.Name,1,#script.Parent.Parent.Victim.Text))==string.lower(script.Parent.Parent.Victim.Text) then
return v
end
end
end
if script.Parent.Parent.Flame.Value==true then
local a=find()
if a~=nil then
local tag=Instance.new("ObjectValue")
tag.Parent=a.Character.Humanoid
tag.Name="creator"
tag.Value=script.Parent.Parent.Parent.Parent
local fire = Instance.new("Fire", character.Humanoid.Parent.Head)
fire.Color = Color3.new(17,10,236)
end
else
local a=find()
if a~=nil then
local fire = Instance.new("Fire", character.Humanoid.Parent.Head)
fire.Color = Color3.new(17,10,236)
end
end
end
script.Parent.MouseButton1Click:connect(click)

2 comments