Of course, the server script is complete, heres the local:
--[Important Variables]
local RS = game:GetService("ReplicatedStorage")
local TS = game:GetService("TweenService")
local GainStrengthEvent = RS.RemoteEvents.GainStrength
local player = game.Players.LocalPlayer
local WeightTool = script.Parent
local db = false
--[Animation Variables]
local StrengthAnimationEquip = script.Parent:WaitForChild("StrengthAnimationEquip", 0.5)
local StrengthAnimationActivate = script.Parent:WaitForChild("StrengthAnimationActivate", 0.5)
local AnimationTrackEquip
local AnimationTrackActivate
local humanoid
--[Gui Variables]
local GainStrengthGui = game.Players.LocalPlayer.PlayerGui:WaitForChild("GainStrengthGui")
local StrengthImage = GainStrengthGui.StrengthLabelFolder.StrengthFrame.StrengthImageLabel
local StrengthLabel = StrengthImage.Parent.StrengthLabel
local StrenghtLabelStroke = StrengthLabel.UIStroke
function ImagesClones()
local StrengthImageClone = StrengthImage:Clone()
local StrengthLabelClone = StrengthLabel:Clone()
StrengthImageClone.Parent = StrengthImage.Parent.Clones
StrengthLabelClone.Parent = StrengthLabel.Parent.Clones
local ClonesFolder = StrengthImage.Parent.Clones
local Tweeninfo = TweenInfo.new(0, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0)
local ImagePosition = UDim2.fromOffset(math.random(25, 572), math.random(25, 345))
local ImageLabelPosition = UDim2.fromOffset(ImagePosition.X.Offset + 27, ImagePosition.Y.Offset - 20)
local Tween = TS:Create(StrengthImageClone, Tweeninfo, {Position = ImagePosition})
local TweenLabel = TS:Create(StrengthLabelClone, Tweeninfo, {Position = ImageLabelPosition})
local Tweeninfo2 = TweenInfo.new(2, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0)
local ImageRotation = 360
local Tween2 = TS:Create(StrengthImageClone, Tweeninfo2, {Rotation = ImageRotation})
local Tweeninfo4 = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0)
local ImageTransparency1 = 0
local LabelTransparency = 0
local StrokeTransparency = 0
local Tween4 = TS:Create(StrengthImageClone, Tweeninfo4, {ImageTransparency = ImageTransparency1})
local Tween5 = TS:Create(StrengthLabelClone, Tweeninfo4, {TextTransparency = LabelTransparency})
local Tween6 = TS:Create(StrengthLabelClone.UIStroke, Tweeninfo4, {Transparency = StrokeTransparency})
Tween:Play()
TweenLabel:Play()
Tween2:Play()
Tween4:Play()
Tween5:Play()
Tween6:Play()
local ImageTransparency2 = 1
local LabelTransparency2 = 1
local UiStrokeTransparency2 = 1
local ImageRotation2 = 0
local Tweeninfo5 = TweenInfo.new(1, Enum.EasingStyle.Back, Enum.EasingDirection.In, 0, false, 0)
local Tween7 = TS:Create(StrengthImageClone, Tweeninfo5, {ImageTransparency = ImageTransparency2, Rotation = ImageRotation2})
local Tween8 = TS:Create(StrengthLabelClone, Tweeninfo5, {TextTransparency = LabelTransparency2})
local Tween9 = TS:Create(StrengthLabelClone.UIStroke, Tweeninfo5, {Transparency = UiStrokeTransparency2})
Tween.Completed:Connect(function()
task.wait(1)
Tween7:Play()
Tween8:Play()
Tween9:Play()
task.wait(1)
if ClonesFolder:FindFirstChild("StrengthImageLabel") then
StrengthImageClone:Destroy()
end
if ClonesFolder:FindFirstChild("StrengthLabel") then
StrengthLabelClone:Destroy()
end
end)
end
WeightTool.Equipped:Connect(function(mouse)
local character = WeightTool.Parent or player.CharacterAdded:Wait()
if character then
humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid then
local AnimatorEquip = humanoid:FindFirstChildOfClass("Animator")
if AnimatorEquip then
AnimationTrackEquip = AnimatorEquip:LoadAnimation(StrengthAnimationEquip)
if AnimationTrackEquip then
AnimationTrackEquip:Play()
humanoid.UseJumpPower = true
humanoid.JumpPower = 0
humanoid.WalkSpeed = 0
return AnimationTrackEquip
end
end
end
end
end)
WeightTool.Activated:Connect(function()
local character = player.Character or player.CharacterAdded:Wait()
if character then
humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid then
local AnimatorActivate = humanoid:FindFirstChildOfClass("Animator")
if AnimatorActivate then
AnimationTrackActivate = AnimatorActivate:LoadAnimation(StrengthAnimationActivate)
if AnimationTrackActivate then
if db == false then
db = true
AnimationTrackActivate:Play()
GainStrengthEvent:FireServer()
ImagesClones()
task.wait(1.2)
db = false
return AnimationTrackActivate
end
end
end
end
end
end)
WeightTool.Unequipped:Connect(function()
if AnimationTrackEquip ~= nil then
end
if AnimationTrackActivate ~= nil then
AnimationTrackActivate:Stop()
end
humanoid.UseJumpPower = true
humanoid.JumpPower = 50
AnimationTrackEquip:Stop()
humanoid.WalkSpeed = 16
end)
I tried that operator but still not working