generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Startergui cutscene: Copy, Paste, Problems

Previous Thread :: Next Thread 
TrainingToTroll is not online. TrainingToTroll
Joined: 27 Oct 2012
Total Posts: 1757
22 May 2014 04:25 PM
How do you make a script so that when you touch it a cutscene in the brick is copied and pasted into a character's startergui?
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
22 May 2014 04:26 PM
script.Parent.Touched:connect(function(hit)
if game.Players:FindFirstChild(hit.Parent.Name) then
local plr = game.Players:FindFirstChild(hit.Parent.Name)
s = script.GUI:Clone()
s.Parent = plr.PlayerGui
end
end)
Report Abuse
TrainingToTroll is not online. TrainingToTroll
Joined: 27 Oct 2012
Total Posts: 1757
22 May 2014 04:28 PM
You again? Your last script didnt work but hopefully this one does.
Report Abuse
1MangoMan0 is not online. 1MangoMan0
Joined: 28 Sep 2010
Total Posts: 1596
22 May 2014 04:29 PM
Try making it by yourself first and you will get better feedback.
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
22 May 2014 04:30 PM
You criticize me even though you dont even try to make your own script before asking for "help"
Report Abuse
TrainingToTroll is not online. TrainingToTroll
Joined: 27 Oct 2012
Total Posts: 1757
22 May 2014 06:09 PM
>_< Don't you think I would atleast try myself before doing it?
Here was my script before:
1st try,
function onTouch(part)
script.Parent.Touched:connect(function(hit)
if game.Players:FindFirstChild(hit.Parent.Name) then
local plr = game.Players:FindFirstChild(hit.Parent.Name)
s = script.Parent.Cutscene:Clone()
s.Parent = plr.PlayerGui
end
end)
end

script.Parent.Touched:connect(onTouch)

2nd try,
b = game.Players:GetPlayerFromCharacter(part.Parent)
function onTouch(part)
local humanoid = part.Parent:FindFirstChild("Humanoid")
if (humanoid ~= nil) then -- if a humanoid exists, then
humanoid.Health = 100
text = "Testing." --Whatever you want the cutscene text to be goes here
script.Parent.Head.Cutscene.LiningDown.TextLabel.Text = text
script.Parent.Head.Touched:connect(function(part)
h = part.Parent:FindFirstChild("Humanoid")
if h then
b = game.Players:GetPlayerFromCharacter(part.Parent)
if b then
if b.PlayerGui:findFirstChild("Cutscene") then return end
script.Parent.Head.Cutscene:Clone().Parent = b.PlayerGui
g = script.View:Clone()
g.Parent = h.Parent
g.Disabled = false
wait(15)
b.PlayerGui:FindFirstChild("Cutscene"):Remove()
end
end
end)
end
end

script.Parent.Touched:connect(onTouch)
3rd try,
b = game.Players:GetPlayerFromCharacter(part.Parent)
function onTouch(part)
local humanoid = part.Parent:FindFirstChild("Humanoid")
if (humanoid ~= nil) then -- if a humanoid exists, then
humanoid.Health = 100
b.PlayerGui.Cutscene.LiningDown.Visible = true
b.PlayerGui.Cutscene.LiningUp.Visible = true
b.PlayerGui.Cutscene.LiningLeft.Visible = true
b.PlayerGui.Cutscene.LiningRight.Visible = true
wait(1)
b.PlayerGui.Cutscene.LiningDown.TextLabel.Visible = true
wait(1)
b.PlayerGui.Cutscene.LiningDown.TextLabel2.Visible = true
wait(1)
b.PlayerGui.Cutscene.LiningDown.TextLabel3.Visible = true
wait(1)
b.PlayerGui.Cutscene.LiningDown.TextLabel4.Visible = true
wait(1)
b.PlayerGui.Cutscene.LiningDown.TextLabel5.Visible = true
wait(1)
b.PlayerGui.Cutscene.LiningDown.TextLabel6.Visible = true
wait(1)
b.PlayerGui.Cutscene.LiningDown.TextLabel7.Visible = true
wait(1)
b.PlayerGui.Cutscene.LiningDown.TextLabel8.Visible = true
wait(1)
b.PlayerGui.Cutscene.LiningDown.TextLabel9.Visible = true
end
end

script.Parent.Touched:connect(onTouch)

You guys know nothing about what I do other than I can't get this right. I just need help and I am i've waited three years long enough for it? Ever done that for one measely game?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image