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: Nothing happen...

Previous Thread :: Next Thread 
Jash50 is not online. 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 is not online. Jash50
Joined: 14 Jul 2011
Total Posts: 86
08 Nov 2014 06:12 AM
BUMP
Report Abuse
Jash50 is not online. Jash50
Joined: 14 Jul 2011
Total Posts: 86
08 Nov 2014 06:28 AM
Beep beep.. Bump
Report Abuse
DevRoboticTerrorist is not online. DevRoboticTerrorist
Joined: 03 Oct 2012
Total Posts: 3464
08 Nov 2014 06:29 AM
No one is going to fix your giant free model'd script.
Report Abuse
Jash50 is not online. Jash50
Joined: 14 Jul 2011
Total Posts: 86
08 Nov 2014 06:50 AM
This is not free model.. -.-

Bump
Report Abuse
TheTroller4ever is not online. TheTroller4ever
Joined: 15 Apr 2013
Total Posts: 95
08 Nov 2014 07:03 AM
So what's the problem? It doesn't teleport..or?
Report Abuse
Jash50 is not online. 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 is not online. 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
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