Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-3

[not really scripting i guess] import video?

Asked by
ere376 0
9 years ago

ok so im making an animation on a place and got the cutscene all made and what not, but i realize idk how to implement it to the game i want, i have a place that i want when you join to play the video of the animation im making, is that possible? please let me know!

0
Use camera and stuff. There are plugins that do this. RM0d 305 — 9y
0
Please, don't post stuff like this. Tesouro 407 — 9y

2 answers

Log in to vote
0
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
9 years ago

Create a function that plays the video, then connect it to the PlayerAdded event.

function Play()
    --stuff
end

game.Players.PlayerAdded:connect(Play)
0
I see no reason why this was downvoted. The question is not very clear, but it seems to me that you're trying to make a cutscene play when a player joins. Since you already made the cutscene, I gave you the event to play it when someone enters. Perci1 4988 — 9y
Ad
Log in to vote
0
Answered by 9 years ago

Try using CloneTroopers Cutscene Plugin, it makes the cutscene for you. All you do it adjust the FOV, etc.

local cscript = script:WaitForChild("CutsceneScript")
if script:findFirstChild("SkipCutsceneGuiValue") then
    script.SkipCutsceneGuiValue.Parent = cscript
    script.SkipCutsceneGui.Parent = cscript
end

function onPlayerEntered(player)
    repeat wait () until player.Character
    local new_script = script.CutsceneScript:clone()
    new_script.Parent = player.Character
    new_script.Disabled = false
end

game.Players.PlayerAdded:connect(onPlayerEntered)
onPlayerEntered(game.Players:WaitForChild("Player1")) -- Has to be done since it doesn't work offline for some reason.

Answer this question