ethanlajJoin Date: 2015-11-17 Post Count: 922 |
Title |
|
|
A client-sided part eh? Well put this in a local script:
local part = instance.new("Part", workspace.CurrentCamera) --I think it's this.
Or if FE is on, just create a part in local script.
Want to be supported by developers in a positive atmosphere? Then join Studio BSD: roblox.com/My/Groups.aspx?gid=1013064 |
|
ethanlajJoin Date: 2015-11-17 Post Count: 922 |
That didn't work, I put the local script in the Workspace, correct? |
|
ethanlajJoin Date: 2015-11-17 Post Count: 922 |
A local script in the Workspace:
local part = game.ReplicatedStorage.Part:Clone()
part.Parent = workspace.Camera |
|
ethanlajJoin Date: 2015-11-17 Post Count: 922 |
local part = game.ReplicatedStorage.Part:Clone()
part.Parent = workspace.CurrentCamera
* |
|
TimeTicksJoin Date: 2011-04-27 Post Count: 27115 |
You don't put anything in the Camera.
Use FE and a local script
Instance.new('Part',workspace)
boom. done.
|
|
|
LocalScripts do not work in Workspace. Unless they are parented to something that uses the client.
Place the LocalScript in something like ReplicatedStorage or in StarterPlayerScripts.
Want to be supported by developers in a positive atmosphere? Then join Studio BSD: roblox.com/My/Groups.aspx?gid=1013064 |
|
ethanlajJoin Date: 2015-11-17 Post Count: 922 |
wait (5)
if script.Parent.Parent:GetRankInGroup(2911975) >= 3 then
local part = game.ReplicatedStorage.Part:Clone()
part.Parent = workspace.CurrentCamera
part.CanCollide = false
else
local part = game.ReplicatedStorage.Part:Clone()
part.Parent = workspace.CurrentCamera
end
This is all in the LocalScript, it doesn't work. |
|
TimeTicksJoin Date: 2011-04-27 Post Count: 27115 |
omfg
workspace.FilteringEnabled = true
--local script
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:wait()
local part = game.ReplicatedStorage:WaitForChild('Part')
if player:GetRankInGroup(2911975) >= 3 then
local part = part:Clone()
part.Parent = workspace
part.CanCollide = false
else
part:Clone().Parent = workspace
end
|
|
ethanlajJoin Date: 2015-11-17 Post Count: 922 |
^ FE will break all of my scripts... |
|
|
Put the script in PlayerGui, StarterPlayerScripts, or StarterCharacterScripts.
You never put localscripts in workspace or in workspace's descendants (except player characters or tools within characters). It's useless to do so.
|
|