Ok so im trying to make a titan shifting script from the anime "Attack on Titan"
the script works but it keeps saying "attempt to call a RBXScriptConnection value" on line 3
sorry if the script looks bad im still learning but it works the way i want it to
local Ball = game.ReplicatedStorage.TransformationBall:Clone()
game.ReplicatedStorage.HasShifted.OnServerEvent:Connect(function(Player)
game.StarterPlayer.StarterPlayerScripts.ButtonPressed.Disabled = true
game.StarterPlayer.StarterPlayerScripts.RunningNormal.Disabled = true
Player:WaitForChild("Titan").Transforming.Value = true
wait(3)
print(Player.Name.." it Now Shifting")
Ball.Parent = workspace
Ball.Position = workspace:FindFirstChild(Player.Name).HumanoidRootPart.Position
workspace.SoundEffects.Transform:Play()
game.Workspace:FindFirstChild(Player.Name).Shirt.ShirtTemplate = " "
game.Workspace:FindFirstChild(Player.Name).Pants.PantsTemplate = " "
game.Lighting.TransformationColorCorrection.Enabled = true
wait(0.3)
game.Lighting.TransformationColorCorrection.Enabled = false
local bds = game.Workspace:FindFirstChild(Player.Name):WaitForChild("Humanoid").BodyDepthScale
local bhs = game.Workspace:FindFirstChild(Player.Name):WaitForChild("Humanoid").BodyHeightScale
local bps = game.Workspace:FindFirstChild(Player.Name):WaitForChild("Humanoid").BodyProportionScale
local bts = game.Workspace:FindFirstChild(Player.Name):WaitForChild("Humanoid").BodyTypeScale
local bws = game.Workspace:FindFirstChild(Player.Name):WaitForChild("Humanoid").BodyWidthScale
local hs = game.Workspace:FindFirstChild(Player.Name):WaitForChild("Humanoid").HeadScale
local TransformBall = game:GetService("TweenService")
local TransBall = workspace:WaitForChild("TransformationBall")
local info = TweenInfo.new(5, Enum.EasingStyle.Bounce , Enum.EasingDirection.Out)
local TweenGoal = {Size = Vector3.new(12, 12, 12),}
local BallAnimation = TransformBall:Create(TransBall, info, TweenGoal)
local fadeinfo = TweenInfo.new(1, Enum.EasingStyle.Sine , Enum.EasingDirection.Out)
local FadeGoal = {
Size = Vector3.new(14, 14, 14),
Transparency = 1
}
local fadeAnimation = TransformBall:Create(TransBall, fadeinfo, FadeGoal)
BallAnimation:Play()
while true do
wait(0)
bds.Value = bds.Value + 0.1
bhs.Value = bhs.Value + 0.1
bps.Value = bps.Value + 0.1
bts.Value = bts.Value + 0.1
bws.Value = bws.Value + 0.1
hs.Value = hs.Value + 0.1
if bds.Value >= 5 and bhs.Value >= 5 and bps.Value >= 5 and bts.Value >= 5 and bws.Value >= 5 and hs.Value >= 5 then
break
end
end
print("Broke")
wait(2)
fadeAnimation:Play()
wait(1.5)
TransBall:Destroy()
workspace:FindFirstChild(Player.Name).Humanoid.WalkSpeed = 64
Player:WaitForChild("Titan").Transforming.Value = false
end)
{
Size = Vector3.new(12, 12, 12),
Transparancy = 1
}

4 comments
Replicated storage events do not work most of the time, put them somewhere else and see if it changes
Try removing the line of code from 67 to 70
oops i put that their to copy and paste but forgot to delete it lol
it works