A Roblox Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

A Roblox Community

A community of Robloxians who want to learn to script and build on Roblox Studio.
 
HomeLatest imagesRegisterLog in
If you're a experienced coder make some tutorials! It would really help the site grow.
Make sure you read the rules(Which can be found by clicking here)
If you're a beginner at coding, try some tutorials.
We have many Moderators/Admins watching this site. Contact them with Questions.
Let us know what your favorite sport is. By clicking here to vote (Click here)
This site is becoming inactive. Lets make it active.
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Top posters
blueymaddog
Issue with Decal Texture Vote_lcapIssue with Decal Texture Voting_barIssue with Decal Texture Vote_rcap 
naknak
Issue with Decal Texture Vote_lcapIssue with Decal Texture Voting_barIssue with Decal Texture Vote_rcap 
Supernapalm
Issue with Decal Texture Vote_lcapIssue with Decal Texture Voting_barIssue with Decal Texture Vote_rcap 
m27frogy
Issue with Decal Texture Vote_lcapIssue with Decal Texture Voting_barIssue with Decal Texture Vote_rcap 
slayer9365
Issue with Decal Texture Vote_lcapIssue with Decal Texture Voting_barIssue with Decal Texture Vote_rcap 
myrco919
Issue with Decal Texture Vote_lcapIssue with Decal Texture Voting_barIssue with Decal Texture Vote_rcap 
branefreez
Issue with Decal Texture Vote_lcapIssue with Decal Texture Voting_barIssue with Decal Texture Vote_rcap 
ninga95
Issue with Decal Texture Vote_lcapIssue with Decal Texture Voting_barIssue with Decal Texture Vote_rcap 
CloneTrooper787
Issue with Decal Texture Vote_lcapIssue with Decal Texture Voting_barIssue with Decal Texture Vote_rcap 
raboy117
Issue with Decal Texture Vote_lcapIssue with Decal Texture Voting_barIssue with Decal Texture Vote_rcap 
Top posting users this month
No user
Latest topics
» Where to go from here.
Issue with Decal Texture EmptySeptember 14th 2020, 1:20 pm by MrNicNac

» Send me an Email
Issue with Decal Texture EmptySeptember 14th 2020, 1:16 pm by MrNicNac

» [v1.6.0.0] Lua Script Obfuscator [No Bytecode]
Issue with Decal Texture EmptyJuly 6th 2015, 7:38 pm by m27frogy

» New Site Possibly
Issue with Decal Texture EmptyJuly 6th 2015, 4:16 pm by m27frogy

» Ambassador!
Issue with Decal Texture EmptyApril 15th 2015, 11:40 pm by naknak

» Boop - Tag
Issue with Decal Texture EmptyApril 13th 2015, 9:46 pm by naknak

» Vip Class Script
Issue with Decal Texture EmptyApril 13th 2015, 4:54 pm by naknak

» Who's active?!
Issue with Decal Texture EmptyApril 13th 2015, 4:52 pm by naknak

» Genesis Point
Issue with Decal Texture EmptyJuly 17th 2014, 7:04 pm by branefreez

» Reward System
Issue with Decal Texture EmptyJuly 17th 2014, 5:41 am by m27frogy

» Script Request
Issue with Decal Texture EmptyJuly 10th 2014, 11:43 am by naknak

» local scripts?
Issue with Decal Texture EmptyJuly 10th 2014, 11:39 am by naknak

» Project: Reconstruction [Died]
Issue with Decal Texture EmptyJuly 10th 2014, 11:36 am by naknak

» Hi. I am new here
Issue with Decal Texture EmptyApril 26th 2014, 4:01 pm by altshiftkey

» What's your favorite sport?
Issue with Decal Texture EmptyJanuary 1st 2014, 2:13 pm by m27frogy

» FlashLight Script
Issue with Decal Texture EmptyJanuary 1st 2014, 2:11 pm by m27frogy

» Gun Making! [READ DESC]
Issue with Decal Texture EmptyJanuary 1st 2014, 2:10 pm by m27frogy

» Hi, I am new here!
Issue with Decal Texture EmptyNovember 26th 2013, 3:33 pm by Keanu73

» Improve Coding
Issue with Decal Texture EmptyOctober 26th 2013, 1:12 pm by pook03

» Simple Button
Issue with Decal Texture EmptySeptember 1st 2013, 6:19 pm by branefreez


 

 Issue with Decal Texture

Go down 
2 posters
AuthorMessage
Guest
Guest
avatar



Issue with Decal Texture Empty
PostSubject: Issue with Decal Texture   Issue with Decal Texture EmptyAugust 2nd 2010, 5:49 pm

I want it to change the texture of the decal to the picture of the person who touched it.



Code:
function changePic(hit)
h = hit.Character:FindFirstChild("Humanoid")
if h ~= nil then
script.Parent.Decal.Texture = "http://www.roblox.com/Thumbs/Avatar.ashx?x=200&y=200&Format=Png&username="..hit.Name
end
end

script.Parent.Touched:connect(changePic)

I believe the error is where I try to change the texture of the decal.
Back to top Go down
Guest
Guest
avatar



Issue with Decal Texture Empty
PostSubject: Re: Issue with Decal Texture   Issue with Decal Texture EmptyAugust 2nd 2010, 5:58 pm

Nevermind...got help somewhere else.
Back to top Go down
slayer9365
Expert Scripter
Expert Scripter
slayer9365


Posts : 233
Join date : 2010-07-31
Age : 29

Issue with Decal Texture Empty
PostSubject: Re: Issue with Decal Texture   Issue with Decal Texture EmptyAugust 2nd 2010, 6:01 pm

Code:
function changePic(hit)
if hit.Parent:findFirstChild("Humanoid") then
script.Parent.Decal.Texture = "http://www.roblox.com/Thumbs/Avatar.ashx?x=200&y=200&Format=Png&username="..hit.Parent.Name
end
end
script.Parent.Touched:connect(changePic)


You checked for the humanoid wrong, and you were trying to fins a player named "Right Leg" for example.
Back to top Go down
blueymaddog
Administrator
Administrator
blueymaddog


Posts : 1081
Join date : 2010-12-09
Age : 26

Issue with Decal Texture Empty
PostSubject: Re: Issue with Decal Texture   Issue with Decal Texture EmptyJanuary 12th 2011, 9:15 pm

problem solved. LET THIS THREAD DIE NOW!!!!!!!!!!!!!!!!!!
Back to top Go down
Sponsored content





Issue with Decal Texture Empty
PostSubject: Re: Issue with Decal Texture   Issue with Decal Texture Empty

Back to top Go down
 
Issue with Decal Texture
Back to top 
Page 1 of 1
 Similar topics
-
» Texture Preloader

Permissions in this forum:You cannot reply to topics in this forum
A Roblox Community :: Questions and Help :: Scripting-
Jump to: