I want to make star finger in every jojo game
I try this script but its dosent deal damage and it just spawn infront not even on stand arm im trying to make the finger rotate 180%
and this is my script:
local rep = game.ReplicatedStorage
local Deb = game:GetService(“Debris”)
local ignorelist = {}
–//ANIM\–
local anim = script.Anim
local hitanim = script.HitAnim
–//SCRIPT\–
rep.Stand.SP.StarFinger.OnServerEvent:Connect(function(Player)
wait(0.5)
local Character = Player.Character
local Stand = Character.Stand
local Hitbox = script.Finger:Clone()
Hitbox.Parent = workspace
Hitbox.CFrame = Stand.HumanoidRootPart.CFrame * CFrame.new(0,0,(Hitbox.Size.Z/2)*-1)
Deb:AddItem(Hitbox,.65)
local Finger = script.Hitbox:Clone()
Finger.Parent = workspace
Finger.CFrame = Stand.HumanoidRootPart.CFrame * CFrame.new(0,0,(Finger.Size.Z/2)*-1)
Deb:AddItem(Finger,.65)
local ignorelist = {}
Finger.Touched:Connect(function(hitpart)
if not hitpart:IsDescendantOf(Character) then
if hitpart.Parent:FindFirstChild("Humanoid") then
local enemy = hitpart.Parent
if (table.find(ignorelist,enemy) == nil) then
table.insert(ignorelist,enemy)
enemy.Humanoid:TakeDamage(8.25)
Enemy.Backpack.Value.UsingMove.Value = true
enemy.Humanoid:LoadAnimation(HitAnim):Play()
local knockback = Instance.new("BodyVelocity")
knockback.MaxForce = Vector3.new(1e6,1e6,1e6)
knockback.Velocity = Character.PrimaryPart.CFrame.LookVector * 10
knockback.Parent = enemy.PrimaryPart
Deb:AddItem(knockback,.3)
wait(1.3)
Enemy.Backpack.Value.UsingMove.Value = false
end
end
end
end)
end)
rep.Stand.SP.StarFinger.OnServerEvent:Connect(function(Player)
local Character = Player.Character
local hum = Character.Humanoid
local Stand = Character:FindFirstChild("Stand")
if Stand then
local AnimControl = Stand:WaitForChild("AnimationController")
if Player.Backpack.Value.UsingMove.Value == false then
Player.Backpack.Value.UsingMove.Value = true
AnimControl:LoadAnimation(anim):Play()
Character.HumanoidRootPart.StandPosition.Position = Vector3.new(0,0,-3)
wait(0.7)
Character.HumanoidRootPart.StandPosition.Position = Vector3.new(-2.5,1,1)
Player.Backpack.Value.UsingMove.Value = false
end
end
end)