|
| 20 Jul 2017 07:12 AM |
game.Players.PlayerAdded:connect(function(plyr) plyr.CharacterAdded:connect(function(char) wait(1) for i,v in pairs(char:GetChildren()) do if v.Name == "HumanoidRootPart" then v.Transparency = 0.99 elseif v.Name == "Head" then v.Transparency = 0 v.face.Transparency = 0 elseif v.ClassName == "Accessory" then v.Handle.Transparency = 0 elseif v.ClassName == "Part" then v.Transparency = 0 end end end) end)
#code print("Lightning Flame Dragon Mode...") --I am totally not Natsu Dragneel |
|
|
| Report Abuse |
|
|
|
| 20 Jul 2017 07:26 AM |
b1
#code print("Lightning Flame Dragon Mode...") --I am totally not Natsu Dragneel |
|
|
| Report Abuse |
|
|
DevJoas
|
  |
| Joined: 17 Dec 2014 |
| Total Posts: 627 |
|
|
| 20 Jul 2017 07:29 AM |
Use Players.LocalPlayer
wiki.roblox.com/index.php?title=API:Class/Players/LocalPlayer |
|
|
| Report Abuse |
|
|
|
| 20 Jul 2017 07:30 AM |
no but like, i want to use that same code in a local one but it doesn't work.
#code print("Lightning Flame Dragon Mode...") --I am totally not Natsu Dragneel |
|
|
| Report Abuse |
|
|
DevJoas
|
  |
| Joined: 17 Dec 2014 |
| Total Posts: 627 |
|
|
| 20 Jul 2017 07:37 AM |
Yeah, so like I said
Remove the PlayerAdded conenction and use Players.LocalPlayer
Then depending on where the localscript is located you have to edit the plyr.CharacterAdded event. |
|
|
| Report Abuse |
|
|
|
| 20 Jul 2017 07:55 AM |
local sp=script.Parent local char=sp.ClassName=="Model"and sp sp=nil local function a(char) for i,v in pairs(char:GetChildren()) do if v.Name == "HumanoidRootPart" then v.Transparency = 0.99 elseif v.Name == "Head" then v.Transparency = 0 v.face.Transparency = 0 elseif v.ClassName == "Accessory" then v.Handle.Transparency = 0 elseif v.ClassName == "Part" then v.Transparency = 0 end;end;end;wait() if char then a(char)else local player=game:GetService"Players".LocalPlayer local char=player.Character if char then a(char)end player.CharacterAdded:Connect(a) end;char=nil |
|
|
| Report Abuse |
|
|
|
| 20 Jul 2017 07:57 AM |
where should i place that local script?
#code print("Lightning Flame Dragon Mode...") --I am totally not Natsu Dragneel |
|
|
| Report Abuse |
|
|
MrFading
|
  |
| Joined: 22 Mar 2015 |
| Total Posts: 233 |
|
|
| 20 Jul 2017 08:08 AM |
| Put it in the player's starterpack |
|
|
| Report Abuse |
|
|