|
This script isn't working for Back flipping when jumping
game.Players.PlayerAdded:connect(function(player)
while not player.Character do wait()end
local character=player.Character
local animateScript=character.Animate
animateScript.fall.FallAnim.AnimationId="http://www.roblox.com/asset/?id=253014225"
end) |
|
baldo46Join Date: 2008-07-28 Post Count: 1254 |
connect to JumpRequest() event on UserInputService.
The setup you have sets it to do a backflip when the player enters not when they press space.
|
|
|
Where do I find UserInputService? |
|
baldo46Join Date: 2008-07-28 Post Count: 1254 |
|
|
|
Where do I put the script at? Also kinda confused on how to do this since I'm not a LUA coder. I only code in Visual Basic |
|
|
HyporosJoin Date: 2008-07-02 Post Count: 4147 |
faze if you attempted to make a back flip script then you should know what hes talking about |
|
|
I've found the script in Toolbox and I'm temping to fix it myself but have failed many times so I'm asking for help. |
|
|
So you dont know how to code, and you want us to fix a broken free model? |
|
|
I guess you could say that. Since I've failed multiple times yes. |
|
|
instawinJoin Date: 2013-06-04 Post Count: 8777 |
game.Players.PlayerAdded:connect(function(player)
while not player.Character do wait()end
local character=player.Character
local animateScript=character.Animate
animateScript.fall.FallAnim.AnimationId="http://www.roblox.com/asset/?id=253014225"
end)
the problem with this script, (if it even works on the first time, but it looks like it would) is that it only changes the AnimationId of FallAnim every time they join the game. so it would only work once. you need to do it when they respawn too.
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
local animScript = char:WaitForChild("Animate")
print("anim script loaded")
local fall = animScript:WaitForChild("fall")
print("fall loaded")
local fallAnim = fall:WaitForChild("FallAnim")
print("fallanim loaded")
fallAnim.AnimationId = "rbxassetid://253014225"
end)
end)
if that doesn't work, tell us what output you get |
|
|
Tried this it didn't work...
game.Players.PlayerAdded:GetService("UserInputService").JumpRequest:connect(function(player)
while not player.Character do wait()end
local character=player.Character
local animateScript=character.Animate
animateScript.fall.FallAnim.AnimationId="http://www.roblox.com/asset/?id=253014225"
end)
Also tried this and it didn't work
game:GetService("UserInputService").JumpRequest:connect(function(player)
while not player.Character do wait()end
local character=player.Character
local animateScript=character.Animate
animateScript.fall.FallAnim.AnimationId="http://www.roblox.com/asset/?id=253014225"
end) |
|
instawinJoin Date: 2013-06-04 Post Count: 8777 |
did you not try my script? |
|
|
That doesn't work and the output..
Just a auto-save message is there a place I have to place this LocalScript? |
|
instawinJoin Date: 2013-06-04 Post Count: 8777 |
|
|
instawinJoin Date: 2013-06-04 Post Count: 8777 |
oh dear god, don't tell my you posted my script in a local script
and your local script probably wasn't running either
put my script in a server script, in ServerScriptService |
|
|
Running your script I get...
anim script loaded
fall loaded
fallanim loaded
20:50:58.777 - httpGet http://www.roblox.com/asset/?id=253014225&serverplaceid=95206881&clientinsert=0 failed. Trying again. Error: HTTP 403 (HTTP/1.1 403 Asset is not trusted for this place). Elapsed time: 0.235005
20:50:59.026 - Content failed for http://www.roblox.com/Asset/?id=253014225&serverplaceid=95206881&clientinsert=0 because HTTP 403 (HTTP/1.1 403 Asset is not trusted for this place)
20:50:59.030 - Content failed because HTTP 403 (HTTP/1.1 403 Asset is not trusted for this place) |
|
|
instawinJoin Date: 2013-06-04 Post Count: 8777 |
"HTTP 403 (HTTP/1.1 403 Asset is not trusted for this place)"
that is because you don't own the asset, buddy |
|
|
|
Any suggestions so I can have a animation so when jumping u do a front flip or back flip? |
|