Before
game:GetService("ReplicatedStorage").Arrow.OnServerEvent:Connect(function(player)
if player.Data.Stand.Value == 9 or player.Data.Stand.Value == 91 or player.Data.Stand.Value == 92 or player.Data.Stand.Value == 93 or player.Data.Stand.Value == 94 or player.Data.Stand.Value == 95 or player.Data.Stand.Value == 10006 then
local char = player.Character
if not char:FindFirstChild"Artist Hat" then
return
end
local human = char["Humanoid"]
local location = player.Character.HumanoidRootPart.CFrame
player:LoadCharacter()
human.WalkSpeed = 16
human.JumpPower = 50
player.Character.HumanoidRootPart.CFrame = location
local rando = math.random(1, 5)
if rando == 1 then
local randooooo = math.random(0, 100)
if randooooo >= 2 then
player.Data.Stand.Value = 94
end
elseif rando == 2 then
local randoo = math.random(0, 100)
if randoo >= 2 then
player.Data.Stand.Value = 93
elseif randoo <= 1 then
player.Data.Stand.Value = 95
end
elseif rando == 3 then
local randooo = math.random (0, 100)
if randooo >= 2 then
player.Data.Stand.Value = 93
elseif randooo <= 1 then
player.Data.Stand.Value = 95
end
elseif rando == 4 then
player.Data.Stand.Value = 92
elseif rando == 5 then
player.Data.Stand.Value = 91
end
end
if rand > 10 and rand then
local rando = math.random(1, 5)
if rando == 1 then
player.Data.Stand.Value = 95
elseif rando == 2 then
player.Data.Stand.Value = 94
elseif rando == 3 then
local randoooo = math.random (0, 100)
if randoooo >= 2 then
player.Data.Stand.Value = 93
elseif randoooo <= 1 then
player.Data.Stand.Value = 95
end
player.Data.Stand.Value = 93
elseif rando == 4 then
player.Data.Stand.Value = 92
elseif rando == 5 then
player.Data.Stand.Value = 91
end
end
end
end)
After
game:GetService("ReplicatedStorage").Arrow.OnServerEvent:Connect(function(player)
if player.Data.Stand.Value == 9 or player.Data.Stand.Value == 91 or player.Data.Stand.Value == 92 or player.Data.Stand.Value == 93 or player.Data.Stand.Value == 94 or player.Data.Stand.Value == 95 or player.Data.Stand.Value == 10006 then
local char = player.Character
if not char:FindFirstChild"Artist Hat" then
return
end
local human = char["Humanoid"]
local location = player.Character.HumanoidRootPart.CFrame
player:LoadCharacter()
human.WalkSpeed = 16
human.JumpPower = 50
player.Character.HumanoidRootPart.CFrame = location
local rando = math.random(1, 5)
if rando == 1 then
local randooooo = math.random(0, 100)
if randooooo >= 2 then
player.Data.Stand.Value = 94
end
elseif rando == 2 then
local randoo = math.random(0, 100)
if randoo >= 2 then
player.Data.Stand.Value = 93
elseif randoo <= 1 then
player.Data.Stand.Value = 95
end
elseif rando == 3 then
local randooo = math.random (0, 100)
if randooo >= 2 then
player.Data.Stand.Value = 93
elseif randooo <= 1 then
player.Data.Stand.Value = 95
end
elseif rando == 4 then
player.Data.Stand.Value = 92
elseif rando == 5 then
player.Data.Stand.Value = 91
end
end
if rand > 10 and rand then
local rando = math.random(1, 5)
if rando == 1 then
player.Data.Stand.Value = 95
elseif rando == 2 then
player.Data.Stand.Value = 94
elseif rando == 3 then
local randoooo = math.random (0, 100)
if randoooo >= 2 then
player.Data.Stand.Value = 93
elseif randoooo <= 1 then
player.Data.Stand.Value = 95
end
player.Data.Stand.Value = 93
elseif rando == 4 then
player.Data.Stand.Value = 92
elseif rando == 5 then
player.Data.Stand.Value = 91
end
end
end)
I take the item, use it, the animation from another script plays. But nothing else happens, I'm sure that the problem is in this script since it is responsible for changing the value.
