Hello DevForum! I’m trying to make an ability where electricity follows your arm, i have all the attachments in the right place on a dummy, and i’m wondering how i could insert this onto the player, exact positions and everything.
Heres the Script:
--Variables
local RE = game.ReplicatedStorage:WaitForChild("Events"):WaitForChild("EWGF")
local Dorya = game.ReplicatedStorage:WaitForChild("Abilities"):WaitForChild("EWGF"):WaitForChild("Kazuya Dorya")
local DoryaElectric = game.ReplicatedStorage:WaitForChild("Abilities"):WaitForChild("EWGF"):WaitForChild("Kazuya Dorya EWGF")
RE.OnServerEvent:Connect(function(plr)
local EWGFChance = math.random(1,25)
local Char = plr.Character or plr.CharacterAdded:Wait()
local HumRP = Char:WaitForChild("HumanoidRootPart")
local Hum = Char:WaitForChild("Humanoid")
local Animator = Hum:WaitForChild("Animator")
local Anim = Animator:LoadAnimation(script:WaitForChild("Animation"))
local DoryaClone = Dorya:Clone()
local DoryaElectricClone = DoryaElectric:Clone()
if EWGFChance ~= 25 then
Anim:Play()
DoryaClone.Parent = HumRP
DoryaClone:Play()
wait(0.8)
DoryaClone:Stop()
end
if EWGFChance == 25 then
--The part where i want the attachments to start being added onto the player
print("Bro did the right inputs")
Anim:Play()
DoryaElectricClone.Parent = HumRP
DoryaElectricClone:Play()
end
end)
Here’s how the attachments are placed on the dummy:
How would i go about this? Thank you!