Hello! I’m trying to create death screen where once the player dies, a text label comes across having a bouncing effect. Here’s my script so far:
local diedText = script.Parent.DIEDtext
game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Died:Connect(function()
diedText:TweenPosition(UDim2.new(0.8,0,0.5,0), "In", "Sine", 0.3)
diedText:TweenPosition(UDim2.new(0.4,0,0.5,0), "In", "Linear", 0.3)
diedText:TweenPosition(UDim2.new(0.55,0,0.5,0), "In", "Linear", 0.3)
diedText:TweenPosition(UDim2.new(0.47,0,0.5,0), "In", "Linear", 0.3)
diedText:TweenPosition(UDim2.new(0.52,0,0.5,0), "In", "Linear", 0.3)
diedText:TweenPosition(UDim2.new(0.49,0,0.5,0), "In", "Linear", 0.3)
diedText:TweenPosition(UDim2.new(0.505,0,0.5,0), "In", "Linear", 0.3)
diedText:TweenPosition(UDim2.new(0.502,0,0.5,0), "In", "Linear", 0.3)
diedText:TweenPosition(UDim2.new(0.499,0,0.5,0), "In", "Linear", 0.3)
diedText:TweenPosition(UDim2.new(0.5,0,0.5,0), "In", "Linear", 0.3)
end)
Here’s the video that I’m trying to replicate (by the way, I’m only trying to do the “DIED!” text):
You might be asking, “Well, what’s the problem?”. My problem is that it only plays the first line of code inside of the function. In addition to that, I’m not getting any errors in the output tab. So basically, the text label just stops at (0.8, 0, 0.5, 0). I’m also an “advanced” beginner in Roblox Lua.