hello, so I recently tried to make a super power script but it’s not working
I’ve used this video (tutorial) to help me, here’s the link and the script for the super power
trigger script
local plr = game.Players.LocalPlayer
local char = plr.Character
local hum = char:WaitForChild(“Humanoid”)
local animation = hum:LoadAnimation(script:WaitForChild(“Animation”))
local mouse = plr.GetMouse()
local debounce = false
mouse.KeyDown:Connect(function(key)
if debounce == true then return end
if key == “q” then
animation:Play()
wait(.3)
script.Slime:FireServer()
wait(10)
debounce = false
end
end)
and the power script
local ts = game:GetService(“TweenService”)
script.Parent.OnServerEvent:Connect(function(plr)
local char = plr.Character
local root = char.HumanoidRootPart
local Slime = game.ReplicatedStorage.Mainice:Clone()
Slime.Parent = char
for i,v in pairs(Slime:GetChildren()) do
v.Transparency = 1
end
Slime.CFrame = root.CFrame + root.CFrame.lookVector * 15
Slime.Position = Slime.Position + Vector3.new(0,1,0)
for i,v in pairs(Slime:GetChildren()) do
ts:Create(v,TweenInfo.new(.2,0,0),(Transparency - 0)):Play()
end
ts:Create(Slime,TweenInfo.new(.3,0,0),(root.CFrame - root.CFrame.lookVector * 22 + Vector3.new(0,1.3,0),Transparency - 0)):Play()
game.Debris:AddItem(Slime,6)
wait(5)
for i,v in pairs(Slime:GetChildren()) do
ts:Create(Slime, TweenInfo.new(.4,0,0),(Transparency - 1)):Play()
end
end)
i need all the information as i can, thanks!
Also, here is my layout of my scripts (if that’s the problem)