Pihs
|
  |
| Joined: 26 Dec 2014 |
| Total Posts: 813 |
|
|
| 28 Dec 2014 02:12 AM |
local animation = game.Lighting.Animation repeat wait() until game.Players.LocalPlayer local player = game.Players.LocalPlayer local loadanim = player.Character.Humanoid:LoadAnimation(animation)
player.Character.Humanoid.Jumping:connect(function() wait(.1)
loadanim:Play() end)
I tried SH, but they didn't have a solution.
I'm trying to make a script, where an animation plays .1 seconds after you jump.
Any help?
The output says that the player is a nil value.
It's in localscript in the startergui, I own the animation, everything is typed right, it just doesn't seem to be working.
Xucs/Leveraged/Tixmaker101/Cuxe - Banned 12/26/2014 - + 55k Post Count |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2014 02:13 AM |
This might not work because of how 'Animation' is set up in Lighting;
local animation = game.Lighting:WaitForChild("Animation") repeat wait() until game.Players.LocalPlayer local player = game.Players.LocalPlayer local char = Workspace:WaitForChild(player.Name) local loadanim = char:WaitForChild("Humanoid"):LoadAnimation(animation) char:WaitForChild("Humanoid").Jumping:connect(function() wait(0.1) loadanim:Play() end) |
|
|
| Report Abuse |
|
|
Pihs
|
  |
| Joined: 26 Dec 2014 |
| Total Posts: 813 |
|
|
| 28 Dec 2014 02:13 AM |
b1
Xucs/Leveraged/Tixmaker101/Cuxe - Banned 12/26/2014 - + 55k Post Count |
|
|
| Report Abuse |
|
|
Pihs
|
  |
| Joined: 26 Dec 2014 |
| Total Posts: 813 |
|
|
| 28 Dec 2014 02:14 AM |
@Sensei
ty, trying it brb
Xucs/Leveraged/Tixmaker101/Cuxe - Banned 12/26/2014 - + 55k Post Count |
|
|
| Report Abuse |
|
|
Pihs
|
  |
| Joined: 26 Dec 2014 |
| Total Posts: 813 |
|
|
| 28 Dec 2014 02:15 AM |
I've gotten this output like 30 times before.
02:15:18.666 - Stack Begin 02:15:18.667 - Script 'Plugin_171376220.Script', Line 2 02:15:18.667 - Stack End Loaded gloo library. Type _G.gloo.Help() for help. 02:15:20.682 - httpGet http://www.roblox.com/asset/?id=197481281&serverplaceid=196991271&clientinsert=0 failed. Trying again. Error: HTTP 403 (Asset is not trusted for this place). Elapsed time: 0.601036 02:15:21.350 - Content failed for http://www.roblox.com/Asset/?id=197481281&serverplaceid=196991271&clientinsert=0 because HTTP 403 (Asset is not trusted for this place) 02:15:21.352 - Content failed because HTTP 403 (Asset is not trusted for this place)
Xucs/Leveraged/Tixmaker101/Cuxe - Banned 12/26/2014 - + 55k Post Count |
|
|
| Report Abuse |
|
|
Pihs
|
  |
| Joined: 26 Dec 2014 |
| Total Posts: 813 |
|
|
| 28 Dec 2014 02:17 AM |
doesn't work btw
Xucs/Leveraged/Tixmaker101/Cuxe - Banned 12/26/2014 - + 55k Post Count |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2014 02:18 AM |
Thats from your plugins, there are no real errors. Real errors would be in red text and would also lead you to where the error came from. Lets say the error came from a script in BasePlate, it would look like this;
Red Text>>
... "game.Workspace.BasePlate.Script," stack end
<<
Something like that^^ |
|
|
| Report Abuse |
|
|
Pihs
|
  |
| Joined: 26 Dec 2014 |
| Total Posts: 813 |
|
|
| 28 Dec 2014 02:19 AM |
Then why isn't it working qq
Xucs/Leveraged/Tixmaker101/Cuxe - Banned 12/26/2014 - + 55k Post Count |
|
|
| Report Abuse |
|
|
Pihs
|
  |
| Joined: 26 Dec 2014 |
| Total Posts: 813 |
|
|
| 28 Dec 2014 02:20 AM |
the form it should be in is:
http://www.roblox.com/Asset?ID=197481281 right?
Should I try placing it somewhere else than lighting?
Xucs/Leveraged/Tixmaker101/Cuxe - Banned 12/26/2014 - + 55k Post Count |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2014 02:20 AM |
Because of how the animation is set up, let me re-write it.
Also, tip, use ReplicatedStorage instead of Lighting to store things. Lighting is outdated and inefficient. |
|
|
| Report Abuse |
|
|
Pihs
|
  |
| Joined: 26 Dec 2014 |
| Total Posts: 813 |
|
|
| 28 Dec 2014 02:20 AM |
Oh, ok.
So should I put it into replicatedstorage instead whilst waiting for your script?
Xucs/Leveraged/Tixmaker101/Cuxe - Banned 12/26/2014 - + 55k Post Count |
|
|
| Report Abuse |
|
|
Salinas23
|
  |
| Joined: 28 Dec 2008 |
| Total Posts: 37141 |
|
|
| 28 Dec 2014 02:22 AM |
u fail at defining player
local animation = game.Lighting.Animation repeat wait() until game.Players.LocalPlayer local player = game.Players.LocalPlayer local loadanim = player.Character.Humanoid:LoadAnimation(animation)
player.Character.Humanoid.Jumping:connect(function() wait(.1)
wtff is that clone the local script using another script everytime a player SPAWNS so use
--script in ServerScriptService game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) animscript:clone().Parent = plr.Character end) end)
--LocalScript in ServerStorage player = game.Players.LocalPlayer animation = game.ReplicatedStorage.Animation
use ur skills to finish the script
R$1,383 |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2014 02:23 AM |
local player = game.Players.LocalPlayer repeat wait() until player local char = Workspace:WaitForChild(player.Name) char:WaitForChild("Humanoid").Jumping:connect(function() local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?ID=PUT YOUR ID HERE"
local animTrack = char.Humanoid:LoadAnimation(animation) animTrack:Play() end) |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2014 02:24 AM |
| ^local script in starterpack/startergui |
|
|
| Report Abuse |
|
|
Pihs
|
  |
| Joined: 26 Dec 2014 |
| Total Posts: 813 |
|
|
| 28 Dec 2014 02:27 AM |
Still says it's not trusted for the place...
Xucs/Leveraged/Tixmaker101/Cuxe - Banned 12/26/2014 - + 55k Post Count |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2014 02:28 AM |
| It has to be your own animation, not others' |
|
|
| Report Abuse |
|
|
Pihs
|
  |
| Joined: 26 Dec 2014 |
| Total Posts: 813 |
|
|
| 28 Dec 2014 02:28 AM |
But it is mine though.
Xucs/Leveraged/Tixmaker101/Cuxe - Banned 12/26/2014 - + 55k Post Count |
|
|
| Report Abuse |
|
|
| |
|
Pihs
|
  |
| Joined: 26 Dec 2014 |
| Total Posts: 813 |
|
|
| 28 Dec 2014 02:30 AM |
197493966
or
197481281
Xucs/Leveraged/Tixmaker101/Cuxe - Banned 12/26/2014 - + 55k Post Count |
|
|
| Report Abuse |
|
|
Pihs
|
  |
| Joined: 26 Dec 2014 |
| Total Posts: 813 |
|
|
| 28 Dec 2014 02:30 AM |
I tried using both.
Everything works fine til i jump, then it says it's not trusted...
Xucs/Leveraged/Tixmaker101/Cuxe - Banned 12/26/2014 - + 55k Post Count |
|
|
| Report Abuse |
|
|
Pihs
|
  |
| Joined: 26 Dec 2014 |
| Total Posts: 813 |
|
|
| 28 Dec 2014 02:32 AM |
bump
Xucs/Leveraged/Tixmaker101/Cuxe - Banned 12/26/2014 - + 55k Post Count |
|
|
| Report Abuse |
|
|
Pihs
|
  |
| Joined: 26 Dec 2014 |
| Total Posts: 813 |
|
|
| 28 Dec 2014 02:33 AM |
kpls
Xucs/Leveraged/Tixmaker101/Cuxe - Banned 12/26/2014 - + 55k Post Count |
|
|
| Report Abuse |
|
|
Pihs
|
  |
| Joined: 26 Dec 2014 |
| Total Posts: 813 |
|
|
| 28 Dec 2014 02:35 AM |
this happens everytime
i finally figure out how to use animations
then the script doesn't work, and nobody can fix it :/
Xucs/Leveraged/Tixmaker101/Cuxe - Banned 12/26/2014 - + 55k Post Count |
|
|
| Report Abuse |
|
|
Pihs
|
  |
| Joined: 26 Dec 2014 |
| Total Posts: 813 |
|
|
| 28 Dec 2014 02:37 AM |
nobody?
qq
Xucs/Leveraged/Tixmaker101/Cuxe - Banned 12/26/2014 - + 55k Post Count |
|
|
| Report Abuse |
|
|
|
| 28 Dec 2014 02:39 AM |
gross
just make a script that swaps out a player's jump animation for yours |
|
|
| Report Abuse |
|
|