Jash50
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 86 |
|
|
| 08 Nov 2014 05:39 AM |
I'm to trying to write a script so if I touch the brick, a frame will appear and teleport me to other point. After that, the frame will fadeout. But it seems that my script didn't work. Sorry for my bad english. :P
local target = CFrame.new(62, 2.8, -89) local ts = workspace.TS1 local LocalPlayer = game.Players.LocalPlayer local startergui = LocalPlayer:FindFirstChild("PlayerGui")
local Char = LocalPlayer.Character if not Char or Char.Parent == nil then Char = LocalPlayer.CharacterAdded:wait() end
local sfxSlam = Instance.new("Sound", startergui) sfxSlam.SoundId = "http://www.roblox.com/assets?id=182306090"
ts.Touched:connect(function() local humanoid = Char:WaitForChild("Humanoid") if Char:FindFirstChild("Humanoid") ~= nil then if startergui:FindFirstChild("ScreenGui") == false then local screengui = Instance.new("ScreenGui", script.Parent) local frame = Instance.new("Frame", screengui) frame.Size = UDim2.new(1,0,1,0) frame.BackgroundColor3 = Color3.new(0,0,0) frame.BorderColor3 = Color3.new(0,0,0) wait() sfxSlam:Play() wait(4) for i=0,1, 0.11 do frame.BackgroundTransparency = i wait() end frame.Visible = false end end end) |
|
|
| Report Abuse |
|
|
Jash50
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 86 |
|
| |
|
Jash50
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 86 |
|
| |
|
|
| 08 Nov 2014 06:29 AM |
| No one is going to fix your giant free model'd script. |
|
|
| Report Abuse |
|
|
Jash50
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 86 |
|
|
| 08 Nov 2014 06:50 AM |
This is not free model.. -.-
Bump |
|
|
| Report Abuse |
|
|
|
| 08 Nov 2014 07:03 AM |
| So what's the problem? It doesn't teleport..or? |
|
|
| Report Abuse |
|
|
Jash50
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 86 |
|
|
| 08 Nov 2014 07:25 AM |
| The title says everything.. nothing happen, no error.. I don't know what is wrong.. D: |
|
|
| Report Abuse |
|
|
Jash50
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 86 |
|
|
| 08 Nov 2014 07:56 AM |
Nevermind, it works already.. xD
if startergui:FindFirstChild("ScreenGui") == false then
to
if startergui:FindFirstChild("ScreenGui") == nil then
|
|
|
| Report Abuse |
|
|