Main Search
Delta Corp Forum Index
 
 
FAQ Members Groups Profile Private Messages

Important Notice: We regret to inform you that our free phpBB forum hosting service will be discontinued by the end of June 30, 2024. If you wish to migrate to our paid hosting service, please contact [email protected].
Hint When-Hover

 
Post new topic   Reply to topic    Delta Corp Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
freaked
Beginner Poster


Joined: 26 May 2008
Posts: 20

PostPosted: Wed May 28, 2008 4:43 am    Post subject: Hint When-Hover Reply with quote

Does anyone know the script where when you hover on a brick or model, a hint appears and after a few seconds it disappears? Please help! Very Happy
_________________


http://robloxhub.wordpress.com
Back to top
View user's profile Send private message
Nasadaws
Delta Corp Moderator


Joined: 27 Mar 2008
Posts: 484
Location: Under you bed Where else?

PostPosted: Wed May 28, 2008 6:10 am    Post subject: Reply with quote

When you get this could you share it with me? I have been looking for this for AGES.

I was gonna make a brick that showed the players name, So you could see names from far away.
_________________
Nasadaws Attack Spammer: Hits 100 Damage with his Ban Hama.
Spammer: Flees.


I R NOE WELDIN ME BAN HAMAR.
Back to top
View user's profile Send private message Send e-mail
SirGelatina
Site Admin


Joined: 01 Mar 2008
Posts: 116
Location: Behind you

PostPosted: Wed May 28, 2008 7:28 pm    Post subject: Reply with quote

I think something like this would work:

Code:
hint = nil

function changeHint(hint, text)
   local parent = hint.Parent
   hint:remove()
   local hint = Instance.new("Hint")
   hint.Text = text
   hint.Parent = parent
   return hint
end

function onMove(mouse)
   if mouse.Target ~= nil then
      hint = changeHint(hint, "Name: " .. mouse.Target.Name)
   end
end

function onDES()
   hint:remove()
end

function onSelected(mouse)
   hint = Instance.new("Hint")
   hint.Parent = script.Parent.Parent.Parent
   wait()
   mouse.Move:connect(function() onMove(mouse) end)
   script.Parent.Deselected:connect(onDES)
end

script.Parent.Selected:connect(onSelected)
Back to top
View user's profile Send private message Send e-mail MSN Messenger
freaked
Beginner Poster


Joined: 26 May 2008
Posts: 20

PostPosted: Fri May 30, 2008 1:32 am    Post subject: Reply with quote

Sure but this won't work.
_________________


http://robloxhub.wordpress.com
Back to top
View user's profile Send private message
Nasadaws
Delta Corp Moderator


Joined: 27 Mar 2008
Posts: 484
Location: Under you bed Where else?

PostPosted: Fri May 30, 2008 6:09 am    Post subject: Reply with quote

That worked...
_________________
Nasadaws Attack Spammer: Hits 100 Damage with his Ban Hama.
Spammer: Flees.


I R NOE WELDIN ME BAN HAMAR.
Back to top
View user's profile Send private message Send e-mail
SirGelatina
Site Admin


Joined: 01 Mar 2008
Posts: 116
Location: Behind you

PostPosted: Fri May 30, 2008 5:52 pm    Post subject: Reply with quote

It worked in my pc =X
Did you put the script into a hopperBin in StarterPack?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
freaked
Beginner Poster


Joined: 26 May 2008
Posts: 20

PostPosted: Sat May 31, 2008 1:12 am    Post subject: Reply with quote

Do I have to put it in a starterpack or could I put in inside the brick?
_________________


http://robloxhub.wordpress.com
Back to top
View user's profile Send private message
SirGelatina
Site Admin


Joined: 01 Mar 2008
Posts: 116
Location: Behind you

PostPosted: Sat May 31, 2008 2:15 am    Post subject: Reply with quote

You have to put a hopperbin in starterpack and THEN put the script INTO the hopperbin
Back to top
View user's profile Send private message Send e-mail MSN Messenger
freaked
Beginner Poster


Joined: 26 May 2008
Posts: 20

PostPosted: Sat May 31, 2008 2:54 am    Post subject: Reply with quote

Awesome! It works but I was asking like there is a different text for each one. Not the name and you can customize it in the script.
_________________


http://robloxhub.wordpress.com
Back to top
View user's profile Send private message
Nasadaws
Delta Corp Moderator


Joined: 27 Mar 2008
Posts: 484
Location: Under you bed Where else?

PostPosted: Sat May 31, 2008 8:27 am    Post subject: Reply with quote

Wouldn't that be like

local Msg = Instance.new("Hint")
if mouse.Hit.p == game.Workspace.Brick.Position then
Msg.Parent = script.Parent.Parent
Msg.Text = "TEXT HERE"
wait(20)
Msg:remove()
end


I think that would work with a connection line and function.... Not to sure...
_________________
Nasadaws Attack Spammer: Hits 100 Damage with his Ban Hama.
Spammer: Flees.


I R NOE WELDIN ME BAN HAMAR.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Delta Corp Forum Index -> Script Requests All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Back to Top              
Jenova Template © digital-delusion.com
Powered by phpBB © 2001, 2002 phpBB Group



For Support - http://forums.BizHat.com

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!