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: Expected ':' not '.' calling member function TweenPosition

Previous Thread :: Next Thread 
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
03 Sep 2011 11:17 AM
function showgui(part)
if part.Parent:findFirstChild("Humanoid") then
local player = game.Players:playerFromCharacter(part.Parent)
if not player.PlayerGui:findFirstChild("checkpoint") then
local g = script.Parent.checkpoint:Clone()
g.Parent = player.PlayerGui
gui = g.Window.Window2
gui:TweenPosition(UDim2.new(0.43,0,0,-10), Out, "Quad", 1, false)
wait(5)
for i = 0,1,.1 do
gui.Title.TextTransparency = i
wait(0.1)
end
gui.TweenPosition(UDim2.new(0.43,0,0,-110), Out, "Quad", 1, false)
end
end
end
script.Parent.Touched:connect(showgui)


Script "Workspace.Checkpoint.Head.Script", Line 14
Report Abuse
Sethalonian is not online. Sethalonian
Joined: 13 Jan 2010
Total Posts: 530
03 Sep 2011 11:40 AM
what is tween position? is it a global function?
Report Abuse
Sethalonian is not online. Sethalonian
Joined: 13 Jan 2010
Total Posts: 530
03 Sep 2011 11:42 AM
if its what i think it is its this

gui-->.<--TweenPosition(UDim2.new(0.43,0,0,-110), Out, "Quad", 1, false)
it should be a : instead of a . (five lines from bottom)
Report Abuse
radioactivated is not online. radioactivated
Joined: 05 Sep 2009
Total Posts: 1181
03 Sep 2011 11:44 AM
If it's a global function,

gui->:<-TweenPosition
Report Abuse
Aurarus is not online. Aurarus
Joined: 22 Dec 2008
Total Posts: 4761
03 Sep 2011 11:57 AM
if part.Parent:findFirstChild("Humanoid") ~= nil then

instead of

if part.Parent:findFirstChild("Humanoid") then


Maybe?
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