|
| 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 |
|
|
|
| 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 |
|
|
|
| 22 May 2014 04:28 PM |
| You again? Your last script didnt work but hopefully this one does. |
|
|
| Report Abuse |
|
|
|
| 22 May 2014 04:29 PM |
| Try making it by yourself first and you will get better feedback. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|